Skip to content

🦐 Java Communication API and SPIs (ri, jserialcomm, purejavacomm)

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE.md
BSD-3-Clause
LICENSE.txt
Notifications You must be signed in to change notification settings

umjammer/vavi-comm

Release Java CI CodeQL Java

vavi-comm

Java Comm API and Implementations

name status driver comment
javax-comm-ri com.sun.comm.JTermIOsDriver use jtermios
purejavacomm 🚧 purejavacomm.PureJavaCommDriver pty doesn't work
jseialcomm ✅️ vavi.comm.jserialcomm.JSerialCommDriver

Install

Usage

make pseudo tty ports

 $ socat -d -d pty,raw,echo=0,link=/tmp/vsp1,crnl,hupcl=0,clocal=1 pty,raw,echo=0,link=/tmp/vsp2,crnl,hupcl=0,clocal=1

api

  // specify the prioritized driver
  System.setProperty("javax.comm.CommDriver", "vavi.comm.jserialcomm.JSerialCommDriver");

  CommPortIdentifier cpi = CommPortIdentifier.getPortIdentifier("/dev/ttys1");
  SerialPort sp = (SerialPort) cpi.open("MyCommApp", 1000);

  OutputStream os = sp.getOutputStream();
  InputStream is = sp.getInputStream();
   ⋮

References

TODO

  • terminal mode for emulators

PureJavaComm is an Application Programmin Interface (API) for accessing serial ports from Java, so this is a library aimed at programmers, not end users.

PureJavaComm aims to be a drop-in replacement for Sun's (now Oracle) abandoned JavaComm and an easier to deploy alternative to RXTX.

PJC is written 100% in Java so it is easy for Java programmers to develop and debug and it requires no native libraries. Native access to the underlaying operating system's serial port programming interface is provided by the wonderful JNA library which takes away all the pain of compiling and deploying native code.

PJC is BSD licensed but please note it depends on JNA which is LGPL/ASL dual licensed.

About

🦐 Java Communication API and SPIs (ri, jserialcomm, purejavacomm)

Topics

Resources

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE.md
BSD-3-Clause
LICENSE.txt

Stars

Watchers

Forks

Contributors 15

Languages