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.
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.
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
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).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.