java - Get device names connected on RS232 port -



java - Get device names connected on RS232 port -

we developing java web application , must read barcodes. using barcode reader called gryphon , works properly. able read barcodes java. using rxtx api (similar javacomm).

but know how device name connected rs232 port. if computer of user had several devices connected different rs232 ports, want hear on port barcode reader connected. how distinguish device connected in each rs232 port?

with next code port names (com1, com3, com5, ...)

enumeration<commportidentifier> pp= commportidentifier.getportidentifiers(); while (pp.hasmoreelements()) { system.out.println (pp.nextelement().getname()); }

i obtain "gryphon" or "serial port barcode scanner".

thanks

java serial-port rxtx java-communication-api

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -