Serial Port Identification with Java on Ubuntu

Reading data from Serial port

Please see:
http://www.intellog.com/blog/?p=255 and http://www.coderanch.com/t/535173/Streams/java/CommPortIdentifier-getPortIdentifiers-empty (the latter points to the first)

Oracle does not offer the binaries for windows (assuming that you're on windows): http://www.oracle.com/technetwork/java/index-jsp-141752.html

Auto detecting serial COM port from VendorID, ProductID in Java

The USB abstraction library libusbp comes with an example program named lsport that lists all USB device and the serial ports they have. You could compile that program and run it from your Java program, or just study how it works and reimplement the same thing in Java.

For Linux, another idea is to look at the symbolic links in /dev/serial/by-id.



Related Topics



Leave a reply



Submit