Solved

RS232 commıunication and java

Posted on 2003-10-24
4
572 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
[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
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JavaFX TableView not displaying correctly 3 165
ejb entity bean example 2 59
ejb mdb examples 1 39
restrict decimal places for double datatype 10 50
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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…
Suggested Courses

710 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