On Sat, Aug 20, 2016 at 3:46 PM, Steven Michalske wrote:
> Here is a general answer for Linux.
> http://unix.stackexchange.com/questions/44308/understanding-udev-rules-and-permissions-in-libusb

IMHO that link doesn't have the greatest answer (or question).
Probably the asking user failed to use group permission because he
didn't log out and in again after adding the user to the groups. I
think group permissions are superior to just letting any user (or
process) full access to the device. I'd recommend something like this:

# Example udev rules (usually placed in /etc/udev/rules.d)
# Makes given device writeable for the "plugdev" group
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483",
ATTRS{idProduct}=="df11", MODE="664", GROUP="plugdev"

>> On Aug 20, 2016, at 07:46, Jay Aurabind  wrote:
>> I am a user of pyOCD, and I am having an issue related to pyusb which
>> is what the former uses for talking to the USB device. The situation
>> is that I need to use pyOCD through an eclipse plugin. Eclipse
>> launches pyocd-gdbserver and normal user. But it will only work if
>> launched as root.

>> ValueError: The device has no langid

The missing langid here looks like https://github.com/walac/pyusb/issues/139

I don't know if this is something wrong about langid (in the device or
software) or if it is just that requesting langid is the first
operation requiring full access to the device. The last comment there
about specifying langid hints to the former option.

Regards,
Tormod

------------------------------------------------------------------------------
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to