Hi all !

I would like to use my scanner under linux. I have reading some text, but I cannot 
setup 
linux for using (or testing) it. Thank you very much for any help. 


HW : PIII, iBX440 chipset with UHCI USB chip, scanner HP PhotoSmart S20
SW : RH 7.2, kernel 2.4.17-0.16, usbmgr-0.4.8-1

After connecting scanner system recognize it and reports this :
/proc/bus/usb/devices :
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 11/900 us ( 1%), #Int=  1, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI-alt Root Hub
S:  SerialNumber=d000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=0102 Rev= 0.14
S:  Product=HP PhotoSmart C5101A - S20
S:  SerialNumber=C0148315
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=usbscanner
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   1 Ivl= 16ms

/proc/bus/usb/drivers :
        usbdevfs
        hub
        hpusbscsi
48- 63: usbscanner


Here is list from messages :
...
hub.c: USB new device connect on bus1/2, assigned device number 3
usb.c: registered new driver usb_mouse
input0: KYE Genius USB Wheel Mouse on usb1:2.0
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
usb.c: registered new driver hid
hid-core.c: v1.8 Andreas Gal, Vojtech Pavlik <[EMAIL PROTECTED]>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
usb_control/bulk_msg: timeout
Product: HP PhotoSmart C5101A - S20
SerialNumber: C0148315
usb.c: USB device 3 (vend/prod 0x3f0/0x102) is not claimed by any active driver.
  Length              = 18
  DescriptorType      = 01
  USB version         = 1.00
  Vendor:Product      = 03f0:0102
  MaxPacketSize0      = 8
  NumConfigurations   = 1
  Device version      = 0.38
  Device Class:SubClass:Protocol = 00:00:00
    Per-interface classes
Configuration:
  bLength             =    9
  bDescriptorType     =   02
  wTotalLength        = 0027
  bNumInterfaces      =   01
  bConfigurationValue =   01
  iConfiguration      =   00
  bmAttributes        =   40
  MaxPower            =  100mA

  Interface: 0
  Alternate Setting:  0
    bLength             =    9
    bDescriptorType     =   04
    bInterfaceNumber    =   00
    bAlternateSetting   =   00
    bNumEndpoints       =   03
    bInterface Class:SubClass:Protocol =   00:00:00
    iInterface          =   00
    Endpoint:
      bLength             =    7
      bDescriptorType     =   05
      bEndpointAddress    =   81 (in)
      bmAttributes        =   02 (Bulk)
      wMaxPacketSize      = 0040
      bInterval           =   00
    Endpoint:
      bLength             =    7
      bDescriptorType     =   05
      bEndpointAddress    =   02 (out)
      bmAttributes        =   02 (Bulk)
      wMaxPacketSize      = 0040
      bInterval           =   00
    Endpoint:
      bLength             =    7
      bDescriptorType     =   05
      bEndpointAddress    =   83 (in)
      bmAttributes        =   03 (Interrupt)
      bmAttributes        =   03 (Interrupt)
      wMaxPacketSize      = 0001
      bInterval           =   10
usb.c: registered new driver usbscanner
scanner.c: 0.4.6:USB Scanner Driver
usb_control/bulk_msg: timeout
    message  repeated 5 times



UI probe program hp_scan.c too, which would be able test it :
"... the 3300 and the PhotoSmart S20 are not SCL compliant. Hp_scan.c's purpose is to 
test the driver without having to retrieve/configure SANE.  Hp_scan.c will scan the 
entire 
bed and put the output into a file called 'out.dat' in the current directory. ..."

Testing this program freezes for long time on :
...
write(4, "\33E", 2)                     = 2
write(4, "\33*a5T", 5)                  = 5
write(4, "\33*a24G", 6)                 = 6
write(4, "\33*f0S", 5)                  = 5
read(4, 0x8049c18, 32768)               = -1 ETIMEDOUT (Connection timed out)

In system log appears this messages :
...
usb_control/bulk_msg: timeout
scanner.c: open_scanner(1): Unable to access minor data
scanner.c: open_scanner(2): Unable to access minor data
scanner.c: open_scanner(3): Unable to access minor data
...
usb_control/bulk_msg: timeout
scanner.c: read_scanner(0): excessive NAK's received


I probe appropriate parameters for scanner module ("vendor=0x3f0 and 
"product=0x102") into /etc/modules too, but it has the same result.



Thank you very much for any answer or help. 




Miroslav BENES
system administrator
TENEZ a.s.
Chotebor
Czech Republic
www.tenez.cz


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to