You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 /dev/tty*, but searching under /dev/serial/by-id gives a lot more information about the device connected:
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.
Activity
pietrygamat commentedon Jul 31, 2020
This fork has just been published to maven central minutes ago under
As to requested feature, I'd love to see it too.
tresf commentedon Jul 31, 2020
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?
pietrygamat commentedon Jul 31, 2020
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
/dev/tty*, but searching under/dev/serial/by-idgives a lot more information about the device connected: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.
tresf commentedon Jul 31, 2020
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
pietrygamat commentedon Aug 1, 2020
This work seems to crack it:
scream3r#113