[Rxtx] finding the modem port
Dr. Douglas Lyon
lyon at docjava.com
Sat May 14 03:07:54 MDT 2005
Hi All,
When I print the available ports from RXTX on my 800 Mhz Powerbook G4,
I get:
got the driver:gnu.io.RXTXCommDriver
port:USA19H1814P1.1 CurrentOwner:null
isCurrentlyOwned=false:PORT_SERIAL
port:/dev/tty.USA19H1814P1.1 CurrentOwner:null
isCurrentlyOwned=false:PORT_SERIAL
port:/dev/cu.USA19H1814P1.1 CurrentOwner:null
isCurrentlyOwned=false:PORT_SERIAL
port:usbserial CurrentOwner:null isCurrentlyOwned=false:PORT_SERIAL
port:/dev/tty.usbserial CurrentOwner:/dev/tty.usbserial
isCurrentlyOwned=true:PORT_SERIAL
port:/dev/cu.usbserial CurrentOwner:null
isCurrentlyOwned=false:PORT_SERIAL
port:Bluetooth-PDA-Sync CurrentOwner:null
isCurrentlyOwned=false:PORT_SERIAL
port:/dev/tty.Bluetooth-PDA-Sync CurrentOwner:null
isCurrentlyOwned=false:PORT_SERIAL
port:/dev/cu.Bluetooth-PDA-Sync CurrentOwner:null
isCurrentlyOwned=false:PORT_SERIAL
I am using:
CommPortIdentifier.getPortIdentifiers()
To list the ports.
I can confirm that:
---------
Date: Fri, 13 May 2005 20:17:41 +0200
From: Matthias Ringwald <mringwal at inf.ethz.ch>
Subject: Re: [Rxtx] mac modem port
To: Java RXTX discussion <rxtx at mail.linuxgrrls.org>
Message-ID: <746FD34B-54AB-4FD2-B454-67FC58446378 at inf.ethz.ch>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
hi
on my machine (G4 933 MHz from 2002), I've got /dev/tty.modem and can
use it from let's ZTerm.
----------
Zterm works for me, too. However, when I run PortTest I get:
Ports found:
- USA19H1814P1.1
- /dev/tty.USA19H1814P1.1
- /dev/cu.USA19H1814P1.1
- usbserial
- /dev/tty.usbserial
- /dev/cu.usbserial
- Bluetooth-PDA-Sync
- /dev/tty.Bluetooth-PDA-Sync
- /dev/cu.Bluetooth-PDA-Sync
But when you run PortTest, you get:
---------
vs16:/Projects/49-Fink_Packages/rxtx mringwal$ java PortTest
Experimental: JNI_OnLoad called.
Devel Library
=========================================
Native lib Version = RXTX-2.0-7pre2
Java lib Version = RXTX-2.0-7pre2
Ports found:
- /dev/tty.modem
- /dev/cu.modem
- /dev/tty.pci-serial18a
- /dev/cu.pci-serial18a
- /dev/tty.pci-serial18b
- /dev/cu.pci-serial18b
- /dev/tty.pci-serial18c
- /dev/cu.pci-serial18c
- /dev/tty.pci-serial18d
- /dev/cu.pci-serial18d
- /dev/tty.SLAB_USBtoUART
- /dev/cu.SLAB_USBtoUART
..
-------------------
I note that you have both tty.modem and cu.modem, where I have neither
of those. Ah Ha!
You have a PCI mac and I have a lap-top. Could this be related to the
issue? I don't know.
There must be some way to identify the internal modem from RXTX.
Anybody out there driving a modem with the mac lap-top? I just want to dial the
phone with my addressbook program.
Thanks!
- Doug
More information about the Rxtx
mailing list