Skip to content
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

RXTX fhs_lock() Error: opening lock file #2

Open
EastEriq opened this issue Dec 28, 2021 · 0 comments
Open

RXTX fhs_lock() Error: opening lock file #2

EastEriq opened this issue Dec 28, 2021 · 0 comments

Comments

@EastEriq
Copy link
Owner

EastEriq commented Dec 28, 2021

When more than one serial device is present on a host, and some serial ports have been connected to, in inst.CelestronFocuser.connect(), fopen() causes a warning like RXTX fhs_lock() Error: opening lock file: /var/lock/LCK..ttyACM0: File exists to be written on stderr, for every OTHER serial port of the system which is already in use, i.e. not for the specific port which we are opening. Possibly this it is a bug of the deprecated serial object, which might be resolved by the newly recommended serialport. I'm a little wary of transitioning the code (there is not much to do, but no fopen(), delete() instead of fclose(), read()/write() instead of fprintf()/freadf()), because serialport has been introduced only in v2019b and I'm not sure whether to force the dependency on a most recent version of Matlab only. Anyway, as for a bug this looks at the moment innocuous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant