SerialPort « Development « Java Articles

Java Articles
1. Class Definition
2. Data
3. Development
4. GUI
5. J2EE
6. J2ME
7. JavaBeans
8. Language
9. Microsoft Collabration
10. Network
11. Swing
12. System Resource
13. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Articles » Development » SerialPort 
1. Java gets serial support with the new javax.comm package
Author:Shivaram H. Mysore and Rinaldo Di Giorgio
URL:http://www.javaworld.com/javaworld/jw-05-1998/jw-05-javadev.html?
Summary: One of the most popular interfaces on a PC is the serial port. This interface allows computers to perform input and output with peripheral devices. Serial interfaces exist for devices such as modems, printers, bar code scanners, smart card readers, PDA interfaces, and so on. Sun's JavaSoft division recently has made available the javax.comm package to add serial support to Java. This package provides support for serial and parallel devices using traditional Java semantics such as streams and events. In order to communicate with a serial device using a serial port on a host computer from a Java application or applet, an interface is required. This API allows you to transmit and receive data from external devices connected to your serial port. In addition, the API provides a complete set of options for setting all of the parameters associated with serial and parallel devices. This article focuses on how to use javax.comm to communicate with a serial device based on RS-232; discusses what the javax.comm API does and does not provide; and offers a small example program that shows you how to communicate to the serial port using this API. We will end with a brief discussion of how this API will work with other device drivers, and also go over the requirements for performing a native port of this API to a specific OS. (2,700 words)


2. Help with the Java Communications API
Author:Tony Sintes
URL:http://www.javaworld.com/javaworld/javaqa/2000-08/02-qa-0811-javacomm.html?
Summary: Use this API to communicate with a serial port


3. Opening up new ports to Java with javax.comm
Author:Chuck McManis
URL:http://www.javaworld.com/javaworld/jw-09-1998/jw-09-indepth.html?
Summary: One of the more interesting technologies to come out of Sun's Java Software Division recently has not had nearly the fanfare of Java3D, JFC, or even the 1.2 version of the JDK. I'm talking about the communications library: javax.comm. This article looks at the basic library features, and discusses my experiences implementing some code that uses a serial port in Java and on Windows 95. (3,000 words)


w__w_w___.__j___a__va___2_s._c___o_m_ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.