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
Difference Between ≫≫≫ and ≫≫
Android: How to Enable/Disable Wifi or Internet Connection Programmatically
Maximum Length of Intent Putextra Method? (Force Close)
How to Parse a Local JSON File from Assets Folder into a Listview
Android Jdbc Not Working: Classnotfoundexception on Driver
Changing Edittext Bottom Line Color with Appcompat V7
Line-Breaking Widget Layout for Android
Can You Use @Autowired With Static Fields
Java.Lang.Outofmemoryerror: Java Heap Space
Is Multi-Thread Output from System.Out.Println Interleaved
Illegalargumentexception or Nullpointerexception For a Null Parameter
How to Validate an Xml File Against an Xsd File
How to Convert an Arraylist Containing Integers to Primitive Int Array
Looking for a CSS Parser in Java
Compound Class Names Are Not Supported Error in Webdriver
Variable Column Names Using Prepared Statements
Java Randomaccessfile.Java Under Linux Not Working Correctly