Solved

serial port communication w/java

Posted on 1998-05-27
4
165 Views
Last Modified: 2010-04-16
I'm trying to create a java front end for an industrial application and need to send and receive data via serial port communication.  Is there a simple way t do this as with TCP/IP.  If not what sorts of low level capabilities does java have for this type of endeavor?
0
Comment
Question by:mrfizz
4 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 1221558
On some platforms and Java VMs, you may be able to open the serial port as a DataInputSteam and DataOutputStream and do IO to the port.  I don't think that all support this, however.  You may be reduced to writing a native method to call the underlying operating system's serial IO routines.
0
 
LVL 1

Expert Comment

by:dufort
ID: 1221559
There is at least one commercial package out there that enables java to use ports. Take a look to the previously answered questions for this information.

0
 

Expert Comment

by:Severin
ID: 1221560
Check out SUNs homepage and surf to the Java developer Connection page. There you will find the java communications API (early access 2) somewhere, I thnik that's what you're looking 4.
And it's free and platform independent!!!!!! No need to pay anything.
0
 
LVL 5

Expert Comment

by:fontaine
ID: 1221561
This article is about Java serial support:

http://www.javaworld.com/javaworld/jw-05-1998/jw-05-javadev.html
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
windows explorer path to command prompt 5 53
how to see all occupied ports on windows 10 laptop 15 75
hibernate example using maven 12 56
Is there a simpler dropbox system? 10 34
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question