469,323 Members | 1,231 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Adding a non-standard Serial Port to Java?

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
2 4304
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
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.

Similar topics

1 post views Thread by Geoff Biggs | last post: by
34 posts views Thread by Adam Hartshorne | last post: by
15 posts views Thread by Stormkid | last post: by
8 posts views Thread by Kevin Little | last post: by
2 posts views Thread by laredotornado | last post: by
4 posts views Thread by Dmitry Korolyov [MVP] | last post: by
5 posts views Thread by Joe | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.