From pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue Mar 14 23:22:02 2006 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: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] 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: Tue Mar 14 23:22:02 2006 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: Tue Mar 14 23:22:02 2006 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@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: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] 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@lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue Mar 14 23:22:04 2006 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 pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue Mar 28 18:25:27 2006 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: Tue Mar 28 18:25:27 2006 Subject: [Rxtx] 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: Tue Mar 28 18:25:27 2006 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: Tue Mar 28 18:25:27 2006 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@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: Tue Mar 28 18:25:27 2006 Subject: [Rxtx] 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@lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue Mar 28 18:25:29 2006 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 pbarthelemy at aim.com Thu Oct 13 01:08:56 2005 From: pbarthelemy at aim.com (Philippe Barthelemy) Date: Tue Mar 28 20:17:22 2006 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: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] 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: Tue Mar 28 20:17:22 2006 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: Tue Mar 28 20:17:22 2006 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@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: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] 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@lbl.gov +1-510-486-7355 fax +1-510-643-8497 AIM, Skype JacobsenRG From pcouas at infodev.fr Tue Oct 11 04:34:22 2005 From: pcouas at infodev.fr (Philippe Couas) Date: Tue Mar 28 20:17:23 2006 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-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 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 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-0158.html 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-0159.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 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-0159.html 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-0160.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 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-0160.html 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-0161.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 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-0161.html 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-0162.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 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-0162.html 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-0163.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 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-0163.html 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-0164.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 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-0164.html 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-0165.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 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-0165.html 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-0166.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 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-0166.html 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-0167.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 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-0167.html 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-0168.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 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-0168.html 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-0169.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 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-0169.html 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-0170.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 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-0170.html 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-0171.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 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-0171.html 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-0172.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 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-0172.html 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-0173.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 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-0173.html 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-0174.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 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-0174.html 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-0175.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 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-0175.html 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-0176.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 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-0176.html 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-0177.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 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-0177.html 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-0178.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 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-0178.html 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-0179.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 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-0179.html 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-0180.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 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-0180.html 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-0181.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 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-0181.html 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-0182.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 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-0182.html 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-0183.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 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-0183.html 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-0184.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 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-0184.html 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-0185.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 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-0185.html 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-0186.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 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-0186.html 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-0187.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 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-0187.html 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-0188.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 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-0188.html 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-0189.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 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-0189.html 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-0190.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 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-0190.html 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-0191.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 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-0191.html 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-0192.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 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-0192.html 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-0193.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 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-0193.html 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-0194.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 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-0194.html 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-0195.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 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-0195.html 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-0196.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 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-0196.html 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-0197.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 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-0197.html 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-0198.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 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-0198.html 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-0199.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 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-0199.html 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-0200.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 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-0200.html 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-0201.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 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-0201.html 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-0202.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 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-0202.html 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-0203.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 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-0203.html 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-0204.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 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-0204.html 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-0205.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 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-0205.html 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-0206.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 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-0206.html 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-0207.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 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-0207.html 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-0208.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 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-0208.html 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-0209.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 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-0209.html 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-0210.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 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-0210.html 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-0211.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 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-0211.html 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-0212.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 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-0212.html 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-0213.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 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-0213.html 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-0214.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 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-0214.html 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-0215.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 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-0215.html 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-0216.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 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-0216.html 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-0217.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 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-0217.html 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-0218.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 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-0218.html 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-0219.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 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-0219.html 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-0220.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 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-0220.html 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-0221.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 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-0221.html 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-0222.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 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-0222.html 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-0223.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 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-0223.html 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-0224.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 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-0224.html 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-0225.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 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-0225.html 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-0226.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 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-0226.html 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-0227.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 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-0227.html 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-0228.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 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-0228.html 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-0229.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 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-0229.html 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-0230.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 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-0230.html 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-0231.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 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-0231.html 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-0232.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 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-0232.html 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-0233.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 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-0233.html 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-0234.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 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-0234.html 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-0235.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 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-0235.html 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-0236.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 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-0236.html 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-0237.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 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-0237.html 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-0238.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 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-0238.html 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-0239.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 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-0239.html 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-0240.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 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-0240.html 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-0241.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 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-0241.html 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-0242.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 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-0242.html 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-0243.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 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-0243.html 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-0244.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 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-0244.html 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-0245.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 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-0245.html 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-0246.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 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-0246.html 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-0247.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 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-0247.html 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-0248.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 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-0248.html 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-0249.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 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-0249.html 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-0250.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 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-0250.html 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-0251.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 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-0251.html 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-0252.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 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-0252.html 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-0253.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 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-0253.html 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-0254.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 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-0254.html 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-0255.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 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-0255.html 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-0256.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 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-0256.html 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-0257.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 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-0257.html 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-0258.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 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-0258.html 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-0259.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 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-0259.html 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-0260.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 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-0260.html 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-0261.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 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-0261.html 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-0262.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 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-0262.html 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-0263.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 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-0263.html 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-0264.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 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-0264.html 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-0265.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 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-0265.html 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-0266.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 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-0266.html 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-0267.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 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-0267.html 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-0268.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 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-0268.html 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-0269.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 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-0269.html 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-0270.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 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-0270.html 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-0271.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 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-0271.html 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-0272.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 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-0272.html 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-0273.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 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-0273.html 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-0274.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 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-0274.html 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-0275.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 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-0275.html 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-0276.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 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-0276.html 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-0277.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 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-0277.html 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-0278.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 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-0278.html 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-0279.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 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-0279.html 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-0280.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 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-0280.html 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-0281.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 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-0281.html 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-0282.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 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-0282.html 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-0283.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 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-0283.html 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-0284.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 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-0284.html 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-0285.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 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-0285.html 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-0286.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 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-0286.html 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-0287.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 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-0287.html 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-0288.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 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-0288.html 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-0289.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 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-0289.html 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-0290.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 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-0290.html 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-0291.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 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-0291.html 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-0292.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 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-0292.html 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-0293.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 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-0293.html 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-0294.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 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-0294.html 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-0295.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 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-0295.html 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-0296.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 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-0296.html 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-0297.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 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-0297.html 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-0298.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 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-0298.html 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-0299.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 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-0299.html 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-0300.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 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-0300.html 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-0301.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 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-0301.html 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-0302.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 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-0302.html 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-0303.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 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-0303.html 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-0304.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 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-0304.html 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-0305.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 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-0305.html 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-0306.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 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-0306.html 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-0307.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 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-0307.html 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-0308.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 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-0308.html 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-0309.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 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-0309.html 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-0310.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 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-0310.html 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-0311.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 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-0311.html 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-0312.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 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-0312.html 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-0313.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 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-0313.html 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-0314.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 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-0314.html 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-0315.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 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-0315.html 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-0316.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 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-0316.html 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-0317.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 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-0317.html 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-0318.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 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-0318.html 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-0319.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 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-0319.html 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-0320.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 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-0320.html 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-0321.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 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-0321.html 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-0322.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 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-0322.html 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-0323.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 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-0323.html 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-0324.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 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-0324.html 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-0325.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 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-0325.html 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-0326.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 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-0326.html 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-0327.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 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-0327.html 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-0328.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 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-0328.html 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-0329.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 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-0329.html 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-0330.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 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-0330.html 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-0331.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 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-0331.html 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-0332.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 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-0332.html 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-0333.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 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-0333.html 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-0334.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 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-0334.html 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-0335.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 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-0335.html 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-0336.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 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-0336.html 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-0337.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 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-0337.html 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-0338.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 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-0338.html 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-0339.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 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-0339.html 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-0340.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 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-0340.html 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-0341.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 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-0341.html 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-0342.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 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-0342.html 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-0343.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 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-0343.html 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-0344.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 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-0344.html 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-0345.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 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-0345.html 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-0346.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 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-0346.html 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-0347.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 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-0347.html 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-0348.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 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-0348.html 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-0349.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 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-0349.html 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-0350.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 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-0350.html 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-0351.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 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-0351.html 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-0352.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 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-0352.html 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-0353.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 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-0353.html 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-0354.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 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-0354.html 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-0355.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 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-0355.html 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-0356.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 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-0356.html 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-0357.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 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-0357.html 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-0358.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 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-0358.html 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-0359.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 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-0359.html 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-0360.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 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-0360.html 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-0361.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 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-0361.html 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-0362.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 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-0362.html 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-0363.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 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-0363.html 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-0364.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 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-0364.html 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-0365.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 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-0365.html 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-0366.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 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-0366.html 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-0367.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 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-0367.html 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-0368.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 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-0368.html 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-0369.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 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-0369.html 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-0370.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 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-0370.html 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-0371.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 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-0371.html 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-0372.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 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-0372.html 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-0373.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 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-0373.html 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-0374.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 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-0374.html 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-0375.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 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-0375.html 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-0376.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 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-0376.html 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-0377.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 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-0377.html 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-0378.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 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-0378.html 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-0379.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 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-0379.html 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-0380.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 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-0380.html 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-0381.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 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-0381.html 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-0382.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 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-0382.html 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-0383.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 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-0383.html 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-0384.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 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-0384.html 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-0385.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 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-0385.html 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-0386.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 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-0386.html 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-0387.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 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-0387.html 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-0388.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 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-0388.html 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-0389.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 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-0389.html 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-0390.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 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-0390.html 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-0391.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 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-0391.html 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-0392.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 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-0392.html 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-0393.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 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-0393.html