Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to interface PC serial with Java program?

Status
Not open for further replies.

iscom

Newbie level 5
Newbie level 5
Joined
Jan 30, 2005
Messages
10
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
83
Serial to Java programs

Any one has an idea how to interface the PC serial with the JAVA program
 

Serial to Java programs

Hi,
you need to have a work around for this.

1) write a native dll in C/C++ which interfaces with PC serial
2) have your java code call methods in this dll.java programs can call native code functions.please refer java docs for native code calling methods.

hope that helps.
 

Serial to Java programs

Java normally has Comms API.. that you can find from the sun's website or make a search for google on it.. That allows you to interface PC Serial/Parallel with Java Programs...

They also include some basic examples as to how to use the API
 

Re: Serial to Java programs

iscom

I just wrote a serial Java program.
The sun Comms API is a bit crap and Serial ports are not supported on all platforms.
However you can download a third-party one free from www.rxtx.org
It is reccomended all over the web, and it worked fine for me (using rates as high as 230,400).

maui
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top