LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-25-2004, 11:55 AM   #1
uwejs
LQ Newbie
 
Registered: Feb 2004
Location: Hannover, Germany
Distribution: debian
Posts: 7

Rep: Reputation: 0
Angry Snapscan1212U I/O Error


Hi,

I'm trying to setup an Agfa Snapscan 1212U (USB-Scanner)
on a debian testing/unstable system.

Everything seems to work fine, the scanner is found by
sane-find-scanner, scanimage -L is working. and so on.

But when I try to scan, issuing scanimage -d (or scanimage -T)
I get a
... scanner warming up
the scanner lights up, i get a strange clicking sound and a few seconds later
a message from scanimage: I/O-Error

Oh, i copied the firmware file snapscan1212U_2.bin from the windows installing onto the debian system and did configure it in /etc/sane.d/snapscan.conf
I tried using the scanner.o module and usbdevfs, results were the same

Any help would be appreciated...

uwejs
 
Old 02-27-2004, 03:51 AM   #2
uwejs
LQ Newbie
 
Registered: Feb 2004
Location: Hannover, Germany
Distribution: debian
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry, I forgot to post more information on my system:

I'm running debian on a 2.4.20 kernel, sane is version1.0.13

sane-find-scanner gives me a:

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x06bd [AGFA ], product=0x2061 [SNAPSCAN]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Scanners connected to the parallel port or other proprietary ports can't be
# detected by this program.

... looks o.k.

cat /proc/bus/usb/devices shows the following:

T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=d488e000
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= 2 Ivl=255ms
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=d488c000
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= 2 Ivl=255ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #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 Root Hub
S: SerialNumber=cc00

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=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs= 1
P: Vendor=06bd ProdID=2061 Rev= 1.00
S: Manufacturer=AGFA
S: Product=SNAPSCAN

C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 8 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=16ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 93/900 us (10%), #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 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=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c00e Rev=11.10
S: Manufacturer=Logitech
S: Product=USB-PS/2 Optical Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usb_mouse
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms

seems to be o.k., too.

But now the trouble begins:

running scanimage -T
with SANE_DEBUG_SNAPSCAN=255

shows the following output:


[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.35
[snapscan] add_usb_device(libusb:002:002)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:002:002)
[snapscan] add_usb_device: Checking if 0x06bd is a supported USB vendor ID
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffd900,6,0xbfffd8d0,0xbfffd8cc (36))
[snapscan] atomic_usb_cmd(0,0xbfffd900,6,0xbfffd8d0,0xbfffd8cc (36))
[snapscan] usb_cmd(0,0xbfffd900,6,0xbfffd8d0,0xbfffd8cc (36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x12 0x00 0x00 0x00 0x24 0x00
[snapscan] usb_read: reading: 0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading: 0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00 0x41 0x47 ...
[snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] snapscani_check_device: Is vendor "AGFA" model "SNAPSCAN" a supported scanner?
[snapscan] snapscani_get_model_id(SNAPSCAN, 0, 2)
[snapscan] snapscani_get_model_id: looking up scanner for ID 0x06bd,0x2061.
[snapscan] snapscani_check_device: Autodetected driver: SnapScan
[snapscan] snapscani_usb_close(0)
[snapscan] snapscani_init_device_structure()
[snapscan] sane_snapscan_get_devices (0xbfffeaf8, 0)
[snapscan] sane_snapscan_open (libusb:002:002, 0xbfffeaf4)
[snapscan] find_device
[snapscan] sane_snapscan_open: Allocating 64512 bytes as scanner buffer.
[snapscan] sane_snapscan_open: allocated scanner structure at 0x808b7f0
[snapscan] open_scanner
[snapscan] snapscani_usb_open(libusb:002:002)
[snapscan] sane_snapscan_open: waiting for scanner to warm up.
[snapscan] wait_scanner_ready
[snapscan] test_unit_ready
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] sane_snapscan_open: performing scanner self test.
[snapscan] send_diagnostic
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffea40,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0xbfffea40,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0xbfffea40,6,0x0,0x0 (0))
[snapscan] sane_snapscan_open: self test passed.
[snapscan] inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0x808b820,6,0x808bf60,0x808b930 (120))
[snapscan] atomic_usb_cmd(0,0x808b820,6,0x808bf60,0x808b930 (120))
[snapscan] usb_cmd(0,0x808b820,6,0x808bf60,0x808b930 (120))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x12 0x00 0x00 0x00 0x78 0x00
[snapscan] usb_read: reading: 0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading: 0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00 0x41 0x47 ...
[snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] inquiry: exposure time: 0.0 ms
[snapscan] inquiry: ms per line: 0.000000
[snapscan] inquiry: hardware config = 0x00
[snapscan] inquiry: bits per pixel = 8
[snapscan] inquiry: pixels per scan line = 0
[snapscan] inquiry: bytes per scan line = 0
[snapscan] inquiry: number of scan lines = 0
[snapscan] inquiry: effective buffer size = 0 bytes, 0 lines
[snapscan] inquiry: expected total scan data: 0 bytes
[snapscan] Looking up 97
[snapscan] Downloading /usr/share/sane/SnapScan1212U_2.bin
[snapscan] Size of firmware: 30906
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0x809bcd8,30916,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0x809bcd8,30916,0x0,0x0 (0))
[snapscan] usb_cmd(0,0x809bcd8,30916,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=10, datalen=30906
[snapscan] usb_write: writing: 0x2a 0x00 0x87 0x00 0x00 0x00 0x00 0x78 0xba 0x00
[snapscan] usb_read: reading: 0xf8 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_write: writing: 0x02 0xf6 0x00 0x32 0xff 0xff 0xff 0xff 0xff 0xff ...
[snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] wait_scanner_ready
[snapscan] test_unit_ready
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading: 0xfb 0x02 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_request_sense
[snapscan] usb_cmd(0,0xbfffe760,6,0xbfffe740,0xbfffe73c (20))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x03 0x00 0x00 0x00 0x14 0x00
[snapscan] usb_read: reading: 0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading: 0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0b 0x00 0x00 ...
[snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] sense_handler(0, 0xbfffe740, 0x808b7f0)
[snapscan] sense_handler: sense key: 0x02, asc: 0x04, ascq: 0x01, i1: 0x0f, i2: 0x00
[snapscan] sense_handler: Not ready.
[snapscan] sense_handler: Logical unit is in process of becoming ready. (15 seconds)
[snapscan] sense_handler: Not ready.
[snapscan] test_unit_ready: snapscan_cmd command failed: Device busy
[snapscan] Scanner warming up - waiting 16 seconds.
[snapscan] test_unit_ready
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0xbfffea00,6,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading: 0xfb 0x02 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_request_sense
[snapscan] usb_cmd(0,0xbfffe760,6,0xbfffe740,0xbfffe73c (20))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x03 0x00 0x00 0x00 0x14 0x00
[snapscan] usb_read: reading: 0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading: 0xf0 0x00 0x04 0x00 0x00 0x00 0x00 0x0b 0x00 0x00 ...
[snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] sense_handler(0, 0xbfffe740, 0x808b7f0)
[snapscan] sense_handler: sense key: 0x04, asc: 0x00, ascq: 0x00, i1: 0x10, i2: 0x00
[snapscan] sense_handler: Hardware error. (0x10, 0x00)
[snapscan] test_unit_ready: snapscan_cmd command failed: Error during device I/O
[snapscan] wait_scanner_ready: hardware error detected.
[snapscan] sane_snapscan_open: wait_scanner_ready after firmware upload command failed: Error during device I/O
scanimage: open of device snapscan:libusb:002:002 failed: Error during device I/O
[snapscan] sane_snapscan_exit


... while the scanner lights up, moves into position - and then stops with a
scratching noise (so i turned it off...)


Any help would be appreciated...

uwejs
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-15-2005 11:22 PM
QMAIL error:554 Transaction failed: message format error mpk25 Linux - Software 1 10-15-2004 12:53 PM
c++ ostream error, messag rot large to trakc down location of error. exodist Programming 2 06-13-2004 06:35 PM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration