Fazecast / jSerialComm

Platform-independent serial port access for Java
GNU Lesser General Public License v3.0
1.34k stars 287 forks source link

port in use? port owner? #544

Closed mvalla closed 8 months ago

mvalla commented 9 months ago

How can jSerialComm be used to know if a serial port is already in use by another process? And if a port is already in use, how to know who is the owner of the port?

NorbertSandor commented 9 months ago

Trying to open the port with jSerialComm will fail in this case.

You can use OS-specific commands to find the "owner of the port", I don't think that jSerialComm has support to retrieve it.

hedgecrw commented 8 months ago

Correct. Thank you @NorbertSandor.