Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Device Descriptor of SerialPort using jssc

How to get the Device Descriptor of a SerialPort using jssc ( java-simple-serial-connector)?

The getPortName() method gives port name (e.g. COM2), but descriptor would be more helpful.

If it's necessary to patch this opensource API to get the Device Descriptor how can it be done?

like image 440
Tejas jain Avatar asked Nov 17 '15 10:11

Tejas jain


1 Answers

Look at gohai/java-simple-serial-connector, the SerialPortList class has a getPortProperties(String portName) method to get the port properties, unfortunately is not implemented yet for windows but is easy to do an implementation and recompile again to make it work.

I hope this helps.

like image 89
vzamanillo Avatar answered Oct 03 '22 20:10

vzamanillo