-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
idProduct and idVendor in Windows OS #69
Comments
This fork has just been published to maven central minutes ago under
As to requested feature, I'd love to see it too. |
Last I checked, serial was anonymous. For example, on windows, a COM port would simply be a physical port, or if emulated, an emulated port. What is this in regards to? Can you link an example, perhaps in another language? |
I'd hate to take over the thread, but I guess my problem is very similar to @Ivra23 's. Windows does expose a bunch of information about the devices listed as COM ports - among others its HardwareID with VID and PID. Having these information provided with the port name would help a lot in autodetecting correct COM port and take the burden of finding one off of user. Similarly, on Linux the ports listed by jssc are only those under
Since the developer may expect to talk only to certain types of devices in their app, they'd want to have more information about each available port. Since the VID and PID are mentioned, the requirement may very well only apply to USB-to-Serial converters, and the most popular java libs for USB device management are awfully unhelpfull in any attempts to match serial port name with USB device. Approaching from the serial side may be a better idea. |
I believe you're taking about the USB protocol of it all, no? What would be the vendor of an on-board serial port? What's being requested may be more of a USB API. A code snippet should be provided as a proof of concept. If other OSs expose this information, that would be nice. Last I checked most COM ports where embedded FTDI controllers, so having a device example, code to grab it would be a great use-case to start with. Edit: I see you've provided some examples. Thanks |
This work seems to crack it: |
Hello,
For begin thank you for library, i have question can you get the Port Properties in Windows and linux OS with jssc, like idProduct and idVendor.
and you're now in jssc 2.9 but in maven it's 2.8.0 ? exactly
thank you.
The text was updated successfully, but these errors were encountered: