|
楼主 |
发表于 2016-2-19 16:24:43
|
显示全部楼层
本帖最后由 pll19840511 于 2016-2-19 16:25 编辑
用的1.0.0,python3.3,windowxp ,刚重装了最新的beta测试版本pyusb,发现好像设备信息都出来了,你用的什么版本,python版本,平台是linux还是windowsxp什么的?
DEVICE ID 0ac8:0345 on Bus 008 Address 001 =================
bLength : 0x12 (18 bytes)
bDescriptorType : 0x1 Device
bcdUSB : 0x200 USB 2.0
bDeviceClass : 0xef Miscellaneous
bDeviceSubClass : 0x2
bDeviceProtocol : 0x1
bMaxPacketSize0 : 0x40 (64 bytes)
idVendor : 0x0ac8
idProduct : 0x0345
bcdDevice : 0x2032 Device 32.32
iManufacturer : 0x1 Error Accessing String
iProduct : 0x2 Error Accessing String
iSerialNumber : 0x0
bNumConfigurations : 0x1
CONFIGURATION 1: 500 mA ==================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x2 Configuration
wTotalLength : 0x1c5 (453 bytes)
bNumInterfaces : 0x2
bConfigurationValue : 0x1
iConfiguration : 0x0
bmAttributes : 0x80 Bus Powered
bMaxPower : 0xfa (500 mA)
INTERFACE 0: Video =====================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x0
bAlternateSetting : 0x0
bNumEndpoints : 0x1
bInterfaceClass : 0xe Video
bInterfaceSubClass : 0x1
bInterfaceProtocol : 0x0
iInterface : 0x4 Error Accessing String
ENDPOINT 0x81: Interrupt IN ==========================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x81 IN
bmAttributes : 0x3 Interrupt
wMaxPacketSize : 0x10 (16 bytes)
bInterval : 0x7
INTERFACE 1: Video =====================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x1
bAlternateSetting : 0x0
bNumEndpoints : 0x0
bInterfaceClass : 0xe Video
bInterfaceSubClass : 0x2
bInterfaceProtocol : 0x0
iInterface : 0x4 Error Accessing String
INTERFACE 1, 1: Video ==================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x1
bAlternateSetting : 0x1
bNumEndpoints : 0x1
bInterfaceClass : 0xe Video
bInterfaceSubClass : 0x2
bInterfaceProtocol : 0x0
iInterface : 0x4 Error Accessing String
ENDPOINT 0x82: Isochronous IN ========================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x82 IN
bmAttributes : 0x5 Isochronous
wMaxPacketSize : 0x1400 (5120 bytes)
bInterval : 0x1
INTERFACE 1, 2: Video ==================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x1
bAlternateSetting : 0x2
bNumEndpoints : 0x1
bInterfaceClass : 0xe Video
bInterfaceSubClass : 0x2
bInterfaceProtocol : 0x0
iInterface : 0x4 Error Accessing String
ENDPOINT 0x82: Isochronous IN ========================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x82 IN
bmAttributes : 0x5 Isochronous
wMaxPacketSize : 0xc00 (3072 bytes)
bInterval : 0x1
INTERFACE 1, 3: Video ==================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x1
bAlternateSetting : 0x3
bNumEndpoints : 0x1
bInterfaceClass : 0xe Video
bInterfaceSubClass : 0x2
bInterfaceProtocol : 0x0
iInterface : 0x4 Error Accessing String
ENDPOINT 0x82: Isochronous IN ========================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x82 IN
bmAttributes : 0x5 Isochronous
wMaxPacketSize : 0x400 (1024 bytes)
bInterval : 0x1
INTERFACE 1, 4: Video ==================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x1
bAlternateSetting : 0x4
bNumEndpoints : 0x1
bInterfaceClass : 0xe Video
bInterfaceSubClass : 0x2
bInterfaceProtocol : 0x0
iInterface : 0x4 Error Accessing String
ENDPOINT 0x82: Isochronous IN ========================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x82 IN
bmAttributes : 0x5 Isochronous
wMaxPacketSize : 0x200 (512 bytes)
bInterval : 0x1
Traceback (most recent call last):
File "C:\Documents and Settings\Administrator\桌面\新建文件夹 (3)\123.py", line 13, in <module>
dev.set_configuration()
File "C:\Python33\lib\site-packages\usb\core.py", line 799, in set_configuration
self._ctx.managed_set_configuration(self, configuration)
File "C:\Python33\lib\site-packages\usb\core.py", line 128, in managed_set_configuration
self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
File "C:\Python33\lib\site-packages\usb\backend\libusb1.py", line 730, in set_configuration
_check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
File "C:\Python33\lib\site-packages\usb\backend\libusb1.py", line 552, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found |
|