I need to be able to interface with a USB scanner (specifically a Epson Perfection V550). I have tried ImageScanner, and it does not seem to find my device (I have also tried to install twain, but it is having issues saying that
Could not find any downloads that satisfy the requirement twain.)
So instead I turned to PyUSB, which can see that the device is there. The problem I now have is that I am not sure what I need to send the device for it to scan and send me back a picture.
Here is code I have run:
import usb.core
import usb.util
import sys
venderID = 0x04B8
productID = 0x013B
dev = usb.core.find(idVendor=venderID, idProduct=productID)
for cfg in dev:
print cfg
and the output to that is:
CONFIGURATION 1: 2 mA ====================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x2 Configuration
wTotalLength : 0x20 (32 bytes)
bNumInterfaces : 0x1
bConfigurationValue : 0x1
iConfiguration : 0x0
bmAttributes : 0xc0 Self Powered
bMaxPower : 0x1 (2 mA)
INTERFACE 0: Vendor Specific ===========================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x0
bAlternateSetting : 0x0
bNumEndpoints : 0x2
bInterfaceClass : 0xff Vendor Specific
bInterfaceSubClass : 0xff
bInterfaceProtocol : 0xff
iInterface : 0x0
ENDPOINT 0x81: Bulk IN ===============================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x81 IN
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x200 (512 bytes)
bInterval : 0xff
ENDPOINT 0x2: Bulk OUT ===============================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x2 OUT
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x200 (512 bytes)
bInterval : 0xff