You are not logged in.
Pages: 1
Hi everyone,
I'm trying to hit my Ardunio using PyUSB but I get the following error
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
lsusb shows me ardunio as:
Bus 004 Device 007: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID)
Googling suggests that I'm missing a udev rule to give everyone permission to the Ardunio so I tried adding a new file /etc/udev/rules.d/99-Ardunio.rules
SUBSYSTEM=="sub",
ATTRS{idVendor}=="2341",
ATTRS{idProduct]=="8036",
MODE="0666",
GROUP="usbusers"
Did sudo udevadm trigger to update udev with the new rule (Is that right?)
Same issue. Where do I go from here?
Offline
SUBSYSTEM=="sub",
should that not be
SUBSYSTEM=="usb",
Offline
You're right, that's my mistake.
So, relogged in before making that change and the issue has been resolved. I think adding myself to the usbusers group (and adding that the udev as it wasn't there at 3pm today) solved the issue.
Thank you!
Offline
Until you have a reason to not do so, I would suggest limiting the privilege to the particular instance of Arduino. "ATTRS{serial}" is what you're searching for. Use `udevadm info -a device` to obtain it. Note, however, that udev allows you to use attributes only from one parent device, so if idVendor or idProduct don't come from the same device as serial, you will not be able to construct a corresponding rule.
Sometimes I seem a bit harsh — don’t get offended too easily!
Offline
Pages: 1