mrbubble62 / LinuxCNC-USB-Probe

MIT License
2 stars 0 forks source link

/dev/ttyUSB0: permission denied #1

Open ArturM opened 4 years ago

ArturM commented 4 years ago

Hi, LinuxCNC throws errors on start:

execv(/dev/ttyUSB0): Permission denied
waitpid failed /dev/ttyUBS0 usbprobe
/dev/ttyUSB0 exited without becoming ready

everything in line with 'loadusr':

loadusr -Wn usbprobe /dev/ttyUSB0

My user is added into 'tty' and 'dialout' groups.

When I start python from shell and type:

import serial
ser = serial.Serial("/dev/ttyUSB0", 115200, timeout=2)

and then type: ser.read(1)

everything looks fine - I got "0" when probe is depressed and "1" when it's pressed.

I've tried even 'chmod 666 /dev/ttyUSB0' but LinuxCNC still throws 'permision denied'.

LinuxCNC 2.7.15 on Debian.

mrbubble62 commented 4 years ago

Did you logout all the way for the group membership change? I will check how I setup the port.

ArturM commented 4 years ago

Yes, I logged out and after this also rebooted computer. Checked on antoher machine and on VM - everywhere I have 'permission denied' from LinuxCNC, but it works from python console. Weird.