472,354 Members | 1,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 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 4454
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.