Solved

serial port communication w/java

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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 …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

706 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

18 Experts available now in Live!

Get 1:1 Help Now