11
2
On CrunchBang linux (Debian variant), I have a COM port on ttyS0
, which I'm trying to use with an NFC device. libnfc responded that it couldn't see any NFC devices, so I tried directly opening the COM port. For this, I used:
sudo cu -l /dev/ttyS0 -s 9600
However, this command returns:
cu: open (/dev/ttyS0): Permission denied
cu: /dev/ttyS0: Line in use
I don't know what could possibly be using this connection. To find out, I've tried reading all open processes and filtering for the use of ttyS0
:
ps -ef | grep tty
but for this command, nothing shows up that is using ttyS0
. I've also tried grabbing all open files and filtering for a lock on ttyS0
:
lsof | grep tty
but this returns nothing using ttyS0
.
How is it possible the cu
says the line is in use, but both ps
and lsof
return nothing using that line?
What about lsof /dev/ttyS0 – Ciclamino – 2014-08-09T01:45:08.877
@Ciclamino That doesn't change it - tty is a substring of
/dev/ttyS0
. That does, however, hide all the other ttys. – None – 2014-08-09T01:57:02.410I have the same problem.
minicom
works fine, butcu
andscreen
refuse to talk to/dev/ttyUSB0
. I was advised to add my user to theuucp
anddialout
groups and log out that didn't help. – Vorac – 2015-10-31T01:23:27.773