Skip to content

Library Features

Will Hedgecock edited this page Mar 11, 2015 · 17 revisions

This java library provides a platform-independent way to access standard serial ports without requiring external libraries, native code, or any other tools. A general feature list includes:

  • Platform-independent library deployment (automatically uses correct native library based on current architecture),
  • Very lightweight and efficient implementation,
  • Enumerates all available serial ports on a machine,
  • Returns both a system port description and a friendly device description,
  • Configurable ports according to baud rate, data bits, stop bits, and parity,
  • Configurable port timeouts (blocking and non-blocking) for both reading and writing,
  • Configurable flow control parameters for the serial port (CTS, RTS/CTS, DSR, DTR/DSR, XOn/XOff),
  • Ability to read and write raw data bytes directly to the serial port,
  • Ability to read and write byte streams via the Java InputStream and OutputStream interfaces,
  • Event-based reading and writing capabilities via callbacks,
  • Callback notification when:
    • New data is available for reading,
    • All data has been successfully written, or
    • A complete fixed-length data packet has arrived

####Supported Platforms####

  • 32/64-bit Windows XP and later
  • 32/64-bit Mac OS X Tiger (10.4) and later
  • 32/64-bit Linux distributions
  • 32/64-bit Mobile Linux derivatives (e.g. Android)