By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,541 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,541 IT Pros & Developers. It's quick & easy.

Adding a non-standard Serial Port to Java?

P: n/a
I am trying to get Java v1.4.2 to use my PCI add-on serial port.

So far, everything I try gives me

javax.comm.NoSuchPortException
at
javax.comm.CommPortIdentifier.getPortIdentifier(Co mmPortIdentifier.java:105)
at
org.sf.javaemu.Serial.SerialCommunications.openCon nection(UnknownSource)
at javaemu.main.init(Unknown Source)
at javaemu.main.main(Unknown Source)

In regular Windows2000, it's known as COM4, but Java is not seeing it.

The PCI board uses
IRQ:9
I/O Base: DF80 to DF87
Any ideas?
Mike C.
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mike C. <no*****@nospam.com> wrote in message news:<hq********************************@4ax.com>. ..
I am trying to get Java v1.4.2 to use my PCI add-on serial port.

So far, everything I try gives me

javax.comm.NoSuchPortException
at
javax.comm.CommPortIdentifier.getPortIdentifier(Co mmPortIdentifier.java:105)
at
org.sf.javaemu.Serial.SerialCommunications.openCon nection(UnknownSource)
at javaemu.main.init(Unknown Source)
at javaemu.main.main(Unknown Source)

In regular Windows2000, it's known as COM4, but Java is not seeing it.

The PCI board uses
IRQ:9
I/O Base: DF80 to DF87
Any ideas?
Mike C.


If your COM4 is not listed in the result from getPortIdentifiers()
method, confirm your BIOS setting for serial-ports/UART.
Jul 17 '05 #2

P: n/a
On 23 Dec 2003 16:53:13 -0800, HG******@nifty.ne.jp (hiwa) wrote:
Mike C. <no*****@nospam.com> wrote in message news:<hq********************************@4ax.com>. ..
I am trying to get Java v1.4.2 to use my PCI add-on serial port.

So far, everything I try gives me

javax.comm.NoSuchPortException
at
javax.comm.CommPortIdentifier.getPortIdentifier(Co mmPortIdentifier.java:105)
at
org.sf.javaemu.Serial.SerialCommunications.openCon nection(UnknownSource)
at javaemu.main.init(Unknown Source)
at javaemu.main.main(Unknown Source)

In regular Windows2000, it's known as COM4, but Java is not seeing it.

The PCI board uses
IRQ:9
I/O Base: DF80 to DF87
Any ideas?
Mike C.


If your COM4 is not listed in the result from getPortIdentifiers()
method, confirm your BIOS setting for serial-ports/UART.


Sorry if I didn't explain the problem clearly. The card I'm trying to
use is an Add-On PCI card, not the one built onto the motherboard.
Since it's an add-on, the motherboard's BIOS doesn't know it exists.

Windows sees it and can use it just fine once it loads the driver for
it. When I try to use the port while running Java, Java it doesn't see
it.

I have tried to use the standard COMM and rxtx-2.0.5-win32, but I
still cannot see the port.

Thanks,

Mike C.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.