RXTX uucp_lock() /var/lock/LK.051.019.002 [message #1436719] |
Fri, 03 October 2014 05:55  |
Eclipse User |
|
|
|
Hi there,
I'm trying to do a serial test on a Java-code I've written, but when I'm trying to do a serial test I get this response:
RXTX uucp_lock() /var/lock/LK.051.019.002 is there
gnu.io.PortInUseException: Unknown Application
I've tried to solve it with Google, but don't know how to do it. Does anyone have a suggestion?
/Emmelie
|
|
|
|
Re: RXTX uucp_lock() /var/lock/LK.051.019.002 [message #1437376 is a reply to message #1436719] |
Sat, 04 October 2014 05:06  |
Eclipse User |
|
|
|
I suppose that you're running some flavor of Linux.
The lock files are used by UNIXish operating systems to
prevent concurrent accesses to a device file from unrelated
processes. The process creating the file should delete it
when its access is over.
1. Look at the details of the lock file:
ls -l /var/lock/LK.051.019.002
who owns it and when is it created. If you are sure that
there is no program running which could legitimately
use the port, just delete the lock file and try again. To be
sure, close Eclipse for the time of these operations.
2. Check that you have read and write access to the serial
port device file (/dev/ttySnn, /dev/ttyUSB0, ... ). The file names
and access requirements vary among different Linux
distributions, and the needed corrective actions vary in
the same way.
In Ubuntu (and supposedly other Debians), the user has to
be a member of dialout group for straight serial ports and
a member of plugdev group for USB ports.
|
|
|
Powered by
FUDForum. Page generated in 0.13084 seconds