Solved

RS232 commıunication and java

Posted on 2003-10-24
4
568 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 80 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

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

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 143
how do i compare an object based on two fields 6 48
why cannot we forward request once the response is committed 2 33
varialbe initialization 11 30
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

914 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

16 Experts available now in Live!

Get 1:1 Help Now