Python 2.7.6 (default, Jun 22 2015, 18:00:18) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. Imported NumPy 1.8.2, SciPy 0.13.3, Matplotlib 1.3.1 Type "scientific" for more details. >>> runfile('/home/rfr/testUSBaccess.py', wdir=r'/home/rfr') DEVICE ID 1a86:5512 on Bus 003 Address 003 ================= bLength : 0x12 (18 bytes) bDescriptorType : 0x1 Device bcdUSB : 0x110 USB 1.1 bDeviceClass : 0xff Vendor-specific bDeviceSubClass : 0x0 bDeviceProtocol : 0x2 bMaxPacketSize0 : 0x8 (8 bytes) idVendor : 0x1a86 idProduct : 0x5512 bcdDevice : 0x304 Device 3.04 iManufacturer : 0x0 iProduct : 0x0 iSerialNumber : 0x0 bNumConfigurations : 0x1 CONFIGURATION 1: 96 mA =================================== bLength : 0x9 (9 bytes) bDescriptorType : 0x2 Configuration wTotalLength : 0x27 (39 bytes) bNumInterfaces : 0x1 bConfigurationValue : 0x1 iConfiguration : 0x0 bmAttributes : 0x80 Bus Powered bMaxPower : 0x30 (96 mA) INTERFACE 0: Vendor Specific =========================== bLength : 0x9 (9 bytes) bDescriptorType : 0x4 Interface bInterfaceNumber : 0x0 bAlternateSetting : 0x0 bNumEndpoints : 0x3 bInterfaceClass : 0xff Vendor Specific bInterfaceSubClass : 0x1 bInterfaceProtocol : 0x2 iInterface : 0x0 ENDPOINT 0x82: Bulk IN =============================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x82 IN bmAttributes : 0x2 Bulk wMaxPacketSize : 0x20 (32 bytes) bInterval : 0x0 ENDPOINT 0x2: Bulk OUT =============================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x2 OUT bmAttributes : 0x2 Bulk wMaxPacketSize : 0x20 (32 bytes) bInterval : 0x0 ENDPOINT 0x81: Interrupt IN ========================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x81 IN bmAttributes : 0x3 Interrupt wMaxPacketSize : 0x8 (8 bytes) bInterval : 0x1 EINS Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile execfile(filename, namespace) File "/home/rfr/testUSBaccess.py", line 13, in dev.set_configuration() File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 799, in set_configuration self._ctx.managed_set_configuration(self, configuration) File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 127, in managed_set_configuration self.managed_open() File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 105, in managed_open self.handle = self.backend.open_device(self.dev) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 722, in open_device return _DeviceHandle(dev) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 600, in __init__ _check(_lib.libusb_open(self.devid, byref(self.handle))) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 552, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 13] Access denied (insufficient permissions) >>>