-
Hi, Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
From main README:
|
Beta Was this translation helpful? Give feedback.
-
That's what I did in first place, did develop USB stuff since 1996 (with Linux since 2004). Tools using the HidRaw backend work fine without sudo. And some lib (dfUsbLib) I wrote some years ago also works fine without sudo (always worked), but that only used libudev, not libhidraw. Next days I will analyze further, just had the hope that someone already knows about this issue. Edit: Sure I am a member of group plugdev (since years on that PC). |
Beta Was this translation helpful? Give feedback.
-
69-hidraw.rules.txt Originally I wanted to write some python code for the project IRMP which is a receiver for IR-remotes. Finding the issues with sudo I switched to a device I know very well since I developed a big portion of it (barcode reader), especially the USB gadget drivers. The 70-hsm-barcode-reader.rules.txt is for the barcode reader (Honeywell Xenon 1900). I wrote the udev rules for these devices some years ago as part of an SDK. For my tests the HidPos* interface was used. The relevant lines are 26-34.
The barcode reader works just fine with my own usb lib and the HidRaw backend of the HIDAPI. Thanks, Dieter Fauth Edit: Typo |
Beta Was this translation helpful? Give feedback.
-
Hi, allows me to detach kernel driver w/o sudo. Note: This is not a universal solution, but is sufficient for my specific test. The device is /dev/bus/usb/001/042 (at my test) and it allows access by plugdev menbers.
Both backend libs were installed while testing (libhidapi-libusb0 and libhidapi-hidraw0). Python code:
|
Beta Was this translation helpful? Give feedback.
-
Thanks Youw, your hints did stear me in the right direction. 70-hsm-barcode-reader.rules.txt PS: Answer to "How do you mean?" My example line in that post was only for a specific barcode reader model. The final udev rules do work with all models from Honeywell (HHP, Welch Allyn), at least the once I know (I am retired since 3 years). |
Beta Was this translation helpful? Give feedback.
Thanks Youw, your hints did stear me in the right direction.
My IRMP test code now works fine.
I attach the rules files in case someone finds this discussion with a search.
70-hsm-barcode-reader.rules.txt
70-irmp.rules.txt
PS: Answer to "How do you mean?" My example line in that post was only for a specific barcode reader model. The final udev rules do work with all models from Honeywell (HHP, Welch Allyn), at least the once I know (I am retired since 3 years).