Solved

RS232 commıunication and java

Posted on 2003-10-24
4
567 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
Comment Utility
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
Comment Utility
0
 
LVL 3

Expert Comment

by:mvoelker
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

762 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

10 Experts available now in Live!

Get 1:1 Help Now