Solved

serial port communication w/java

Posted on 1998-05-27
4
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.
Suggested Courses

738 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