Sunday, January 2, 2011

Part 2 of 6: Architecture of RS232Java

===================================================================
Click Here - PART 3 OF 6
===================================================================
First of all there are only 2 known APIs are available in the market for Serial Communication in JAVA.

JavaComm - It is provided by Sun Microsystems and in 2005 Sun silently withdrew Java Comm support for Windows.

RxTx - This is a very good API which provide support for windows as well as Linux. But in my opinion in order to properly use this API, you need intermediate level of knowledge of Serial communication. Rx-Tx - if not used as a Java Comm driver - provides a richer interface, but one which is not standardized.

RS232Java -This API
has been built on top of RXTXcomm to provide a richer and better interface. It can support both 32 and 64 bit machine. In Serial programming flows are complex but similar most of time. This API has lots of in built flows, so user can decide which flow to execute. Everything will be handled by this API.

Architecture:

This API reflects replica of Instructor-Executor based relationship, in which user of the API will act as Instructor and API will be executor. You decide which flow to be executed and executor will do that.



===================================================================
Click Here - PART 3 OF 6
===================================================================