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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With