Hi Roger,
I am using the JavaComm API from SerialIO. (Have put
the jspComm.jar and libjspMacOSX.jnilib in my jdk
home).
The Device I am trying to use is the Intellistripe
Credit Card Reader (IS-320), which has RS-232 and
connects via USB Port.
This device does not have a ready-made driver, so I
got the FTDI Driver, and added my device's VendorID
and ProductID, so that it gets recognized.
Thanks,
Rafi SM
--- Roger Smith <email@hidden> wrote:
> It looks like you are attempting to use the serial
> ports from java.
> Which java serial IO library are you using? What
> serial device are you
> using? You need to provide alot more info than this
> if you expect
> people to help...
>
>
>
>
> On Wed, 19 Jan 2005 13:41:34 -0800 (PST), mohamed
> rafi
> <email@hidden> wrote:
> > Hi,
> >
> > I have connected a Serial Device to my Mac's USB
> Port,
> > and its getting recognized (Could see the entries
> in
> > /dev/ folder).
> >
> > However, when I try to open the port by doing a
> >
> > serialPort = (SerialPort) portId.open("TestApp",
> > 2000);
> > (portId is a CommPortIdentifier object)
> >
> > I am getting a PortInUseException. Following is
> the
> > stacktrace of the error:
> >
> > javax.comm.PortInUseException: Could not open
> > usbserial-3B13
> > usbserial-3B13: SerOpenPort failed: : 16
> > at
> >
>
javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:180)
> > at
> >
>
ScannerFunctionality.main(ScannerFunctionality.java:47)
> > Exception in thread "main"
> > java.lang.NullPointerException
> > at
> >
>
ScannerFunctionality.main(ScannerFunctionality.java:56)
> >
> > Also, I tried to get the port owner, by doing a
> > PortInUseException.currentOwner, and this gives as
> > 'Unknown'.
> >
> > Any idea of what could be causing this error, and
> how
> > to avoid this issue ?
> >
> > Thanks,
> > Rafi SM
> >
> > __________________________________
> > Do you Yahoo!?
> > The all-new My Yahoo! - What will yours do?
> > http://my.yahoo.com
> > _______________________________________________
> > Do not post admin requests to the list. They will
> be ignored.
> > Usb mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
>
http://lists.apple.com/mailman/options/usb/email@hidden
> >
> > This email sent to email@hidden
> >
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden