Subject: kern/19856: Add support for Epson Perfection 2400 USB scanner
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rquinn@sec.sprint.net>
List: netbsd-bugs
Date: 01/15/2003 05:08:44
>Number:         19856
>Category:       kern
>Synopsis:       Add support for Epson Perfection 2400 USB scanner
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 15 05:09:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rob Quinn
>Release:        current as of 15 Jan 2003
>Organization:
>Environment:
NetBSD strike.XXX 1.6L NetBSD 1.6L (STRIKE) #83: Wed Jan 15 07:27:07 EST 2003     rquinn@strike.XXX:/usr/obj/STRIKE i386

>Description:
Similar to kern/14170 and kern/19767, these changes (usually) let SANE use my Epson Perfection 2400 USB scanner:

%cd sys/dev/usb/
%cvs diff usbdevs
Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.291
diff -c -r1.291 usbdevs
*** usbdevs     2003/01/13 17:25:20     1.291
--- usbdevs     2003/01/15 12:57:13
***************
*** 660,665 ****
--- 660,666 ----
  product EPSON GT9700F         0x0112  GT-9700F scanner
  product EPSON 1260            0x011d  Perfection 1260 scanner
  product EPSON 1660            0x011e  Perfection 1660 scanner
+ product EPSON 2400            0x011b  Perfection 2400 scanner
  
  /* e-TEK Labs products */
  product ETEK 1COM             0x8007  Serial port





%cvs diff uscanner.c 
Index: uscanner.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/uscanner.c,v
retrieving revision 1.37
diff -c -r1.37 uscanner.c
*** uscanner.c  2003/01/13 21:51:30     1.37
--- uscanner.c  2003/01/15 12:57:25
***************
*** 185,190 ****
--- 185,191 ----
   {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_1660 }, 0 },
   {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_640U }, 0 },
   {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_1650 }, 0 },
+  {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_2400 }, 0 },
   {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_GT9700F }, USC_KEEP_OPEN },
  
#dmesg | grep uscan
uscanner0 at uhub0 port 1
uscanner0: EPSON EPSON Scanner, rev 2.00/1.00, addr 2

>How-To-Repeat:
Without the changes:

ugen0 at uhub0 port 1
ugen0: EPSON EPSON Scanner, rev 2.00/1.00, addr 2

With the changes I still saw this several times when I connected the scanner:

uhub0: device problem, disabling port 1

 Unplugging/replugging the USB cable a few times enabled it:

uscanner0 at uhub0 port 1
uscanner0: EPSON EPSON Scanner, rev 2.00/1.00, addr 2

 SANE and xscanimage could use the device in 8 bit mode once I commented out the
current entries in /usr/pkg/etc/sane.d/epson.conf and put in "usb /dev/uscanner0".
16 bit mode just returns solid black images, but this is my first time using SANE so it
could be a problem on my end.


%scanimage -L
[epson] Requesting extended status
[epson] No error
[epson] Checking for ADF: (00)
[epson] Checking for TPU: (80)
[epson] Device name = GT-9300
device `epson:/dev/uscanner0' is a Epson GT-9300 flatbed scanner

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: