Solved

serial port communication w/java

Posted on 1998-05-27
4
161 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now