java - Get device names connected on RS232 port -
We are developing a Java web application and it must be read barcode. We are using a barcode reader named Graphene And it works properly. We are able to read barcodes from Java. We are using the RXTX API (similar to JAVACOMM).
But what we want to know is how the device's name is connected to the RS232 port if a user's computer has several devices connected to different RS 232 ports, then we just want to listen on that port , Where the barcode reader is connected.
With the next code I can only get port name (COM1, COM3, COM5, ...)
enumeration & lt; CommPortIdentifier & gt; PP = CommPortIdentifier.getPortIdentifiers (); While (pp.hasMoreElements ()) {System.out.println (pp.nextElement (). GetName ()); }
I would like to get something like "graphon" or "serial port for barcode scanner".
Thanks
Comments
Post a Comment