From: Matthias G. <em...@ma...> - 2015-06-12 12:15:59
|
Hello guys, I'm new to this mailing list, pyusb and Linux in general. So sorry, if some of my questions may be a little stupid. I know my way around python, though. Anyways, I got a raspberry pi with raspbian installed and I'm writing a python script to read data from an air quality sensor that identifies itself as a HID to the OS. When I try to read or write data to/from the device I get a USBError: Could not claim interface 0: device or resource busy. I think that happens because the os attaches a kernel driver to the device. Correct? In that case I found some code that tries to claim the interface: if dev.is_kernel_driver_active (0): dev.detach_kernel_driver(0) usb.util.claim_interface (dev, 0) But there I get a NotImplementedError. Why? Whats wrong and what can I do? Matt |