473,320 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 4529
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Geoff Biggs | last post by:
Evening all, I'm trying to add a new built-in number data type to Python with its own syntax, so I'm working directly with the interpreter rather than creating my own extension module (side...
16
by: Picho | last post by:
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET...
34
by: Adam Hartshorne | last post by:
Hi All, I have the following problem, and I would be extremely grateful if somebody would be kind enough to suggest an efficient solution to it. I create an instance of a Class A, and...
15
by: Stormkid | last post by:
Hey Gang, I'm trying to figure out the best way to add two times together of the format hh:mm:ss any suggestions would be great thanks Todd
8
by: Kevin Little | last post by:
#!/usr/bin/env python ''' I want to dynamically add or replace bound methods in a class. I want the modifications to be immediately effective across all instances, whether created before or...
2
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would...
4
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer...
0
by: Fred Dag | last post by:
Hi, I have a FormView that uses a ObjectDataSource. It retreives data alright but when updating it gives a ObjectDataSource 'ObjectDataSourceCatalogueItem' could not find a non-generic method...
2
by: AlecL | last post by:
I have a page that has about 5 or 6 user controls ranging from hearders to footers to ad space but when I add a new user control which is a form it gives me the exception "page can have only one...
5
by: Joe | last post by:
I'm trying to add the current time + a randomly generated time w/ millisecond precision, but the numbers aren't making sense. If I add rand_time + now_time on my calculator, I get a different...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.