From tjarvi at qbang.org Sat Oct 1 21:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat Oct 1 21:08:16 2005 Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 22:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat Oct 1 22:50:10 2005 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 23:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat Oct 1 23:03:27 2005 Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 22:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu Oct 6 22:55:58 2005 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 23:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu Oct 6 23:26:26 2005 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0395.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0395.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0395.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0395.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0395.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0396.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0396.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0396.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0396.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0396.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0397.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0397.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0397.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0397.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0397.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0398.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0398.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0398.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0398.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0398.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0399.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0399.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0399.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0399.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0399.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0400.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0400.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0400.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0400.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0400.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0401.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0401.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0401.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0401.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0401.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0402.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0402.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0402.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0402.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0402.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0403.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0403.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0403.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0403.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0403.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0404.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0404.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0404.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0404.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0404.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0001.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0001.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0001.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0001.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0001.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0002.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0002.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0002.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0002.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0002.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0003.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0003.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0003.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0003.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0003.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0004.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0004.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0004.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0004.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0004.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0005.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0005.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0005.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0005.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0005.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0006.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0006.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0006.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0006.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0006.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0007.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0007.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0007.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0007.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0007.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0008.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0008.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0008.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0008.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0008.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0009.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0009.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0009.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0009.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0009.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0010.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0010.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0010.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0010.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0010.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0001.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0001.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0001.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0001.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0001.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0002.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0002.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0002.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0002.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0002.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0003.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0003.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0003.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0003.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0003.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0004.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0004.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0004.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0004.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0004.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0005.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0005.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0005.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0005.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0005.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0006.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0006.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0006.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0006.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0006.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0007.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0007.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0007.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0007.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0007.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0008.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0008.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0008.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0008.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0008.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0009.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0009.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0009.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0009.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0009.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0010.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0010.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0010.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0010.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0010.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0001.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0001.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0001.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0001.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0001.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0002.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0002.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0002.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0002.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0002.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0003.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0003.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0003.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0003.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0003.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0004.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0004.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0004.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0004.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0004.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0005.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0005.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0005.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0005.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0005.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0006.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0006.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0006.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0006.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0006.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0007.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0007.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0007.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0007.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0007.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0008.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0008.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0008.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0008.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0008.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0009.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0009.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0009.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0009.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0009.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0010.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0010.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0010.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0010.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0010.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0011.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0011.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0011.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0011.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0011.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0012.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0012.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0012.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0012.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0012.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0013.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0013.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0013.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0013.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0013.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0014.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0014.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0014.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0014.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0014.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0015.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0015.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0015.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0015.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0015.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0016.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0016.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0016.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0016.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0016.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0017.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0017.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0017.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0017.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0017.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0018.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0018.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0018.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0018.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0018.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0019.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0019.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0019.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0019.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0019.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0020.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0020.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0020.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0020.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0020.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0021.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0021.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0021.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0021.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0021.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0022.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0022.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0022.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0022.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0022.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0023.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0023.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0023.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0023.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0023.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0024.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0024.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0024.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0024.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0024.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0025.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0025.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0025.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0025.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0025.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0026.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0026.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0026.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0026.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0026.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0027.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0027.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0027.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0027.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0027.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0028.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0028.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0028.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0028.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0028.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0029.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0029.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0029.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0029.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0029.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0030.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0030.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0030.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0030.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0030.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0031.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy@aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0031.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0031.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0031.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0031.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0032.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0032.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0032.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0032.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0032.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0033.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0033.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0033.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0033.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0033.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0034.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0034.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0034.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0034.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0034.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0035.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0035.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0035.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0035.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0035.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0036.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0036.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0036.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0036.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0036.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0037.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0037.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0037.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0037.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0037.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0038.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0038.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0038.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0038.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0038.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0039.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0039.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0039.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0039.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0039.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0040.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0040.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0040.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0040.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0040.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0041.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0041.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0041.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0041.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0041.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0042.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0042.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0042.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0042.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0042.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0043.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0043.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0043.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0043.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0043.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0044.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0044.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0044.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0044.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0044.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0045.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0045.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0045.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0045.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0045.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0046.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0046.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0046.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0046.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0046.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0047.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0047.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0047.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0047.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0047.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0048.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0048.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0048.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0048.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0048.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0049.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0049.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0049.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0049.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0049.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0050.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0050.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0050.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0050.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0050.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0051.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0051.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0051.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0051.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0051.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0052.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0052.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0052.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0052.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0052.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0053.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0053.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0053.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0053.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0053.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0054.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0054.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0054.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0054.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0054.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0055.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0055.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0055.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0055.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0055.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0056.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0056.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0056.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0056.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0056.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0057.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0057.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0057.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0057.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0057.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0058.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0058.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0058.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0058.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0058.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0059.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0059.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0059.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0059.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0059.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0060.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0060.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0060.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0060.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0060.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0061.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0061.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0061.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0061.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0061.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0062.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0062.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0062.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0062.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0062.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0063.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0063.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0063.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0063.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0063.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0064.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0064.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0064.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0064.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0064.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0065.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0065.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0065.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0065.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0065.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0066.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0066.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0066.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0066.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0066.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0067.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0067.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0067.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0067.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0067.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0068.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0068.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0068.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0068.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0068.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0069.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0069.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0069.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0069.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0069.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0070.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0070.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0070.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0070.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0070.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0071.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0071.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0071.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0071.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0071.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0072.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0072.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0072.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0072.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0072.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0073.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0073.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0073.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0073.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0073.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0074.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0074.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0074.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0074.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0074.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0075.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0075.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0075.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0075.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0075.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0076.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0076.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0076.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0076.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0076.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0077.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0077.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0077.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0077.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0077.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0078.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0078.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0078.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0078.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0078.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0079.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0079.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0079.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0079.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0079.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0080.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0080.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0080.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0080.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0080.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0081.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0081.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0081.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0081.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0081.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0082.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0082.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0082.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0082.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0082.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0083.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0083.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0083.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0083.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0083.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0084.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0084.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0084.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0084.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0084.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0085.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0085.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0085.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0085.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0085.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0086.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0086.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0086.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0086.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0086.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0087.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0087.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0087.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0087.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0087.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0088.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0088.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0088.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0088.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0088.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0089.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0089.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0089.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0089.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0089.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0090.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0090.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0090.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0090.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0090.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0091.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0091.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0091.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0091.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0091.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0092.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0092.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0092.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0092.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0092.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0093.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0093.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0093.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0093.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0093.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0094.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0094.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0094.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0094.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0094.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0095.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0095.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0095.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0095.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0095.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0096.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0096.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0096.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0096.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0096.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0097.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0097.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0097.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0097.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0097.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0098.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0098.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0098.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0098.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0098.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0099.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0099.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0099.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0099.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0099.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0100.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0100.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0100.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0100.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0100.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0101.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0101.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0101.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0101.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0101.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0102.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0102.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0102.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0102.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0102.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0103.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0103.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0103.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0103.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0103.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0104.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0104.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0104.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0104.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0104.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0105.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0105.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0105.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0105.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0105.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0106.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0106.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0106.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0106.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0106.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0107.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0107.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0107.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0107.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0107.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0108.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0108.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0108.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0108.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0108.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0109.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0109.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0109.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0109.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0109.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0110.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0110.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0110.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0110.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0110.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0111.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0111.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0111.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0111.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0111.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0112.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0112.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0112.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0112.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0112.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0113.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0113.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0113.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0113.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0113.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0114.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0114.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0114.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0114.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0114.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0115.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0115.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0115.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0115.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0115.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0116.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0116.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0116.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0116.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0116.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0117.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0117.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0117.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0117.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0117.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0118.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0118.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0118.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0118.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0118.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0119.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0119.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0119.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0119.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0119.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0120.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0120.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0120.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0120.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0120.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0121.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0121.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0121.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0121.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0121.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0122.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0122.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0122.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0122.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0122.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0123.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0123.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0123.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0123.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0123.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0124.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0124.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0124.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0124.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0124.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0125.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0125.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0125.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0125.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0125.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0126.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0126.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0126.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0126.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0126.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0127.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0127.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0127.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0127.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0127.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0128.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0128.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0128.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0128.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0128.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0129.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0129.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0129.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0129.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0129.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0130.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0130.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0130.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0130.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0130.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0131.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0131.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0131.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0131.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0131.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0132.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0132.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0132.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0132.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0132.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0133.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0133.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0133.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0133.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0133.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0134.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0134.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0134.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0134.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0134.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0135.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0135.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0135.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0135.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0135.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0136.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0136.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0136.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0136.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0136.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0137.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0137.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0137.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0137.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0137.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0138.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0138.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0138.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0138.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0138.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0139.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0139.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0139.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0139.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0139.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0140.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0140.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0140.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0140.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0140.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0141.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0141.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0141.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0141.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0141.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0142.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0142.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0142.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0142.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0142.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0143.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0143.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0143.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0143.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0143.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0144.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0144.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0144.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0144.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0144.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0145.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0145.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0145.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0145.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0145.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0146.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0146.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0146.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0146.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0146.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0147.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0147.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0147.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0147.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0147.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0148.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0148.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0148.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0148.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0148.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0149.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0149.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0149.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0149.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0149.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0150.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0150.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0150.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0150.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0150.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0151.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0151.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0151.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0151.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0151.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0152.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0152.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0152.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0152.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0152.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0153.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0153.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0153.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0153.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0153.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0154.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0154.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0154.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0154.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0154.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0155.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0155.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0155.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0155.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0155.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0156.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0156.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0156.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0156.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0156.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0157.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 10:14:54 -0700 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: At 9:08 AM +0200 10/13/05, Philippe Barthelemy wrote: >Should I hide all port which name has a 'cu' ( or shoudl I hide the >tty ones ? ) in it, or 'bluetooth' in it. The "cu" special files are "raw", which means they don't automatically handle character editing like backspace, etc. The "tty" special files are "cooked", which means that they normally do the usual character editing that you'd expect from a terminal. Which one you need depends on what you want. Bob -- Bob_Jacobsen at lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pbarthelemy at aim.com Tue Oct 18 00:41:37 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue, 18 Oct 2005 08:41:37 +0200 Subject: [Rxtx] mac serial sniffing ? Message-ID: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Hello, A bit off-topic I must confess : I am trying to port a C ( termios-based ) application ( not to name it : http://daveb.net/s710 ). The data are supposed in two batches after a request is sent by the mac ( a small delay separate the two ) my problem : I only get the first batch with rxtx.org This lead me to one question : On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder to see what does transit through the port ? Thanks in advance ! --Philippe PS : to make my question more generic, I may add : how should one do sniffing on Windows ? on Linux ? From Christian.Klemke at t-online.de Tue Oct 18 02:11:04 2005 From: Christian.Klemke at t-online.de (Christian Klemke) Date: Tue, 18 Oct 2005 10:11:04 +0200 Subject: [Rxtx] mac serial sniffing ? References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <001101c5d3bb$7c71b920$02fea8c0@NB600> Hi Philippe, for Windows, I suggest using a tool called PortMon. It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Regards, Christian ----- Original Message ----- From: "Philippe Barthelemy" To: Sent: Tuesday, October 18, 2005 8:41 AM Subject: [Rxtx] mac serial sniffing ? > Hello, > > A bit off-topic I must confess : > > I am trying to port a C ( termios-based ) application ( not to name it : > http://daveb.net/s710 ). > The data are supposed in two batches after a request is sent by the mac > ( a small delay separate the two ) > my problem : I only get the first batch with rxtx.org > > This lead me to one question : > On Mac OS X 10..4, how can I do some low-level serial sniffing, in oroder > to see what does transit through the port ? > > Thanks in advance ! > > --Philippe > > PS : to make my question more generic, I may add : how should one do > sniffing on Windows ? on Linux ? > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From pbarthelemy at aim.com Wed Oct 19 23:57:00 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 20 Oct 2005 01:57:00 -0400 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> Message-ID: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From tjarvi at qbang.org Thu Oct 20 00:08:12 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Thu, 20 Oct 2005 00:08:12 -0600 (MDT) Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: On Thu, 20 Oct 2005 pbarthelemy at aim.com wrote: >> for Windows, I suggest using a tool called PortMon. >> It is freely available from > http://www.sysinternals.com/Utilities/Portmon.html. > > Further research on mac serial sniffing have lead me to : > Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/24024 > Portterm : http://kulesh-software.com/Software/PortTerm/ > > In my case, both are fall short of what I need : I need something on par with > PortMon, the soft you pointed me to... > > Years ago when I wanted to reverse engineer the Garmin GPS protocol, I just made a custom cable. I split the rx and tx and sent them to com2 and com2. I could then see everything. computer1 --------------------------> computer2 <-----------|-------------- | | | | Computer3 COM1 <------- | COM2 <---------| A couple of years after I did that (which was why I started rxtx) I found Sun engineers had done a better job in their playground. It did work though. With the above, you see everything and don't have to worry. You cant read a port and leave the data there. The obove sends a copy to each computer getting around reading the uart and leaving the data. Observing the port is going to need a virtual device or hacking or overriding libc/windows dlls while using 3rd party software. Or the above. From trevor at opecsystem.com Thu Oct 20 10:53:14 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Thu, 20 Oct 2005 17:53:14 +0100 Subject: [Rxtx] usb-serial read problem on linux Message-ID: <001801c5d596$c34a6310$2b001eac@aries> Afternoon all I have been looking through the archives and found a few references to the use of usb-serial ports on linux, where you could tx and rx using minicom, but only tx using RXTX2.1.7. Having read these messages I am not sure of the resolution. I have encountered exactly the same problem, i.e. I have /dev/ttyUSB0 loopback. Using minicom I can transmit data and see it come back to minicom. If I try the same from my application using RXTX 2.1.7 you can see the data transmitted and the rx led on the hardware flash, but no data back to the application. I am using the libraries from January 2005. I apologise if this has already been answered and I have just not found the posting. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051020/c73a228a/attachment-0157.html From pbarthelemy at aim.com Thu Oct 20 14:04:04 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 20 Oct 2005 22:04:04 +0200 Subject: [Rxtx] Re: mac serial sniffing ? In-Reply-To: References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <8C7A3523916CDCD-4B8-128FD@mblk-d13.sysops.aol.com> Message-ID: <6540335F-289D-47E3-AB57-CB94E0D95122@aim.com> Le 20 oct. 05 ? 08:08, Trent Jarvi a ?crit : > > Years ago when I wanted to reverse engineer the Garmin GPS > protocol, I just made a custom cable. I split the rx and tx and > sent them to com2 and com2. I could then see everything. Having read the PortMon log, I think the problem is not related to the data themselves, but to the control protocol handling ( RTS, timeouts, etc... ). So I am not sure the 3-computers set-up will help me ... Anyway, I'll make use of PortMon on windows for the time being, I guess. Thanks to all who answered me ! --Philippe From jimo at earthlink.net Sun Oct 23 15:30:47 2005 From: jimo at earthlink.net (Jim Owen) Date: Sun, 23 Oct 2005 14:30:47 -0700 Subject: [Rxtx] Ethernet Serial Ports Message-ID: <000001c5d819$08ded350$6401a8c0@jimsrv> Hi, I'm running the 2.4 RedHat kernel with an ethernet serial port driver from lavalink. A call to getPortIdentifiers() returns a single normal serial port (/dev/ttyS0) and a parallel port, but none of the serial ports setup for the ethernet serial port driver. I can cat out the port to a modem and see that the command is arriving, but I'm unable to get rxtx to correctly detect and identify this port. Any suggestions on this one? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051023/5e5b4d9f/attachment-0157.html From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0157.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue, 11 Oct 2005 10:34:22 -0000 Subject: [Rxtx] RXTX Message-ID: <006601c5ce4f$d35812f0$080110ac@INFPC005> Hi, Could you says me if your Javacomm API is running on AIX 4.3.3.0 ? Regards Philippe Philippe COUAS Responsable D?veloppement INFODEV S.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051011/c4c11743/attachment-0157.html From philippe.barthelemy at gmail.com Wed Oct 19 15:03:30 2005 From: philippe.barthelemy at gmail.com (Philippe Barthelemy) Date: Wed, 19 Oct 2005 21:03:30 -0000 Subject: [Rxtx] mac serial sniffing ? In-Reply-To: <001101c5d3bb$7c71b920$02fea8c0@NB600> References: <47CDE04B-D84E-43C8-A19A-EC34F77F2B45@aim.com> <001101c5d3bb$7c71b920$02fea8c0@NB600> Message-ID: > for Windows, I suggest using a tool called PortMon. > It is freely available from http://www.sysinternals.com/Utilities/ > Portmon.html. Further research on mac serial sniffing have lead me to : Serial Port Tool : http://www.versiontracker.com/dyn/moreinfo/macosx/ 24024 Portterm : http://kulesh-software.com/Software/PortTerm/ In my case, both are fall short of what I need : I need something on par with PortMon, the soft you pointed me to... Still looking... --Philippe From tjarvi at qbang.org Sat Oct 1 14:08:25 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 14:08:25 -0600 (MDT) Subject: [Rxtx] Getting Back To RXTX Message-ID: I've been on a trip and have now returned. I'll be posting some fixes to the list shortly but want to make sure the list sane. -- Trent Jarvi From rachel at strangenoises.org Sat Oct 1 15:52:14 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Sat, 01 Oct 2005 22:52:14 +0100 Subject: [Rxtx] test Message-ID: <433F050E.5040308@strangenoises.org> test From tjarvi at qbang.org Sat Oct 1 16:03:42 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 1 Oct 2005 16:03:42 -0600 (MDT) Subject: [Rxtx] test. Message-ID: monthly notice missed. From rachel at strangenoises.org Thu Oct 6 15:56:18 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 22:56:18 +0100 Subject: [Rxtx] testing Message-ID: <43459D82.70903@strangenoises.org> testing From rachel at strangenoises.org Thu Oct 6 16:26:46 2005 From: rachel at strangenoises.org (Rachel Greenham) Date: Thu, 06 Oct 2005 23:26:46 +0100 Subject: [Rxtx] test Message-ID: <4345A4A6.2080601@strangenoises.org> test -- Rachel From tjarvi at qbang.org Sun Oct 9 15:45:36 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Sun, 9 Oct 2005 15:45:36 -0600 (MDT) Subject: [Rxtx] Test, Info and Request Message-ID: To solve problems with the mail-list we have tranfered to qbang.org. Many thanks to Jasmine for her previous work late into the nights on the mail-list at electronpusher.org. To mail to the list, use rxtx at qbang.org Archives are at http://mailman.qbang.org/pipermail/rxtx/ You should have recieved an email for personal options (which will probably not be your previous options). Please give people a couple days to go in and switch to weekly delivery or change their mail filters to keep the list out of their main box before we get going. -- Trent Jarvi tjarvi at qbang.org From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Thu, 13 Oct 2005 09:08:56 +0200 Subject: [Rxtx] showing only relevant ports Message-ID: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? After a discussion with Trent, I've understood that all the devices listed below do indeed have serial interfaces and should be shown by rxtx. My point is just to restrict the choice of user to relevant ports. Should I hide all port which name has a 'cu' ( or shoudl I hide the tty ones ? ) in it, or 'bluetooth' in it. TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem are not true serial ports From mringwal at inf.ethz.ch Thu Oct 13 02:40:32 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 10:40:32 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> Message-ID: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Hi Phlippe > I am running the latest stable of RxTx on MacOS X 10.4 Tiger. > I have a question : > > RxTx retrieve a lot of supposedly serial ports, see below. > How can I tell 'real' serial port, from the fake ( eg. bluetooth ) > ones ? Can you define 'real' serial ports? Or put it the other way round, which ports do you want to hide and why? No Mac shipped lately has any serial ports build in. In my machine, I have a 4x serial PCI card which give me /dev/tty.pci- serial18[a-d] Others might have a USB-2-Serial adapter and would say those are real serial ports. Even the bluetooth ports do have some sense. I would be annoyed, if I would buy a Bluetooth GPS receiver which after some configuration shows up as a serial port on the mac but I cannot use it because my favorite app just doesn't show its name. Coming back to your question. I don't think you can get additional information in java. I guess using either the IORegistry or some bsd functions, you should be able to get this information. ( extendind RXTX? a small JNI lib?) > ,... My point is just to restrict the choice of user to relevant > ports. define 'relevant' ... :) > Should I hide all port which name has a 'cu' ( or shoudl I hide the > tty ones ? ) in it, or 'bluetooth' in it. I'm not sure what thoes cu. ports are for, so hiding them might serve you. Cheers, Matthias From pbarthelemy at aim.com Thu Oct 13 08:38:25 2005 From: pbarthelemy at aim.com (pbarthelemy at aim.com) Date: Thu, 13 Oct 2005 10:38:25 -0400 Subject: [Rxtx] showing only relevant ports In-Reply-To: <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> Message-ID: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Hello, > Can you define 'real' serial ports? > Or put it the other way round, which ports do you want to hide and why? Yes, indeed, I would like to show the user only the serial port that are usb-serial adapter. For instance, I would like to show my Keyspan and Belkin adapter, but hide the Bluetooth phone, the modem, my Palm... I guess, maybe hardcoding the name of common usb-serial adapters and matching it with the list of available ports will do the job... basically, I'll hide this : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mringwal at inf.ethz.ch Thu Oct 13 09:43:07 2005 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 13 Oct 2005 17:43:07 +0200 Subject: [Rxtx] showing only relevant ports In-Reply-To: <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> References: <3EE0ADC1-2C6D-4C66-8D33-91EB0DBEA805@aim.com> <4E0AB941-0FAD-4BC6-A849-7D7F2B3621BF@inf.ethz.ch> <8C79E1AE7897075-978-10B60@MBLK-R04.sysops.aol.com> Message-ID: <094F444E-087D-411B-9E6B-90576B469049@inf.ethz.ch> Hi again, On 13.10.2005, at 16:38, pbarthelemy at aim.com wrote: > Yes, indeed, I would like to show the user only the serial port > that are usb-serial adapter. IORegistry does know about them... :) otherwise, you will have to add any new usb-2-serial adpater upon users request. :( good luck, matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051013/c60251ba/attachment-0158.html From Bob_Jacobsen at lbl.gov Thu Oct 13 11:14:54 2005 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Thu, 13 Oct 2005 1