Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RS232 commıunication and java

Posted on 2003-10-24
4
Medium Priority
?
577 Views
Last Modified: 2010-03-31
I need to write a program to communicate between two computers.But I have to do this with
using RS232. communication.Just sending a single string to other computer and receive any message from this computer is eneough for me.I have some experiences with sockets would they work?How can I do this?

Thanks.
0
Comment
Question by:muratsmile
  • 2
4 Comments
 
LVL 15

Expert Comment

by:jimmack
ID: 9612644
To use RS232, you need the commapi for your platform.  This provides the APIs to identify and use your RS232 ports.

URL to follow, when I've found it ;-)
0
 
LVL 15

Accepted Solution

by:
jimmack earned 320 total points
ID: 9612646
0
 
LVL 3

Expert Comment

by:mvoelker
ID: 9612651
All you need is the javax.comm API. There is a tutorial including source for a server and a client that send/receive strings via serial port:

http://java.sun.com/products/javacomm/javadocs/API_users_guide.html

Have fun,

 - michael
0
 
LVL 92

Expert Comment

by:objects
ID: 10215356
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept jimmack's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

objects
EE Cleanup Volunteer
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

772 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