[sane-devel] plustek Error during device I/O

Antoine Jacoutot ajacoutot at lphp.org
Tue Dec 27 14:49:29 UTC 2005


Hello...

I'm working on updating the OpenBSD port of sane-backends from 1.0.16 to 1.0.17.
Unfortunately, one user is having an issue with a CanoScan device.
I'm forwarding his mail so maybe you could give me a hint on what's going on and
why it might not be working. I, for one, am using sane with OpenBSD-current and
a Canon scanner with great success.

Thanks in advance for any clue. Happy holidays...

Antoine

ps: here you go :

#####
I just moved a CanoScan LIDE 20 over my notebook to try it. First the obvious:
it is correctly *not* getting taken over by "uscanner", so it should be
available to SANE,
as the documentation states:

ian:21$ dmesg | grep ugen
ugen0 at uhub0 port 1
ugen0: Canon CanoScan, rev 1.10/1.00, addr 2
ian:22$

sane-find-scanner finds it:

found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan],
chip=LM9832/3) at libusb:/dev/usb0:/dev/ugen0

I found that the plustek, not canon, backend has to be used, so I set this:

ian:16$ echo $SANE_DEFAULT_DEVICE
plustek:/dev/ugen0
ian:17$

ian:23$ scanimage -L

No scanners were identified...


ian:14$ scanimage >/tmp/id

scanimage: open of device plustek:/dev/ugen0 failed: Error during device I/O
ian:15$

(With sudo scanimage it takes longer but gives the same message).

I believe this is the relevant part of the ktrace output:

15848 scanimage CALL  open(0xcfbf5ea0,0,0)
15848 scanimage NAMI  "/dev/ugen0.00"
15848 scanimage RET   open 7
15848 scanimage CALL  fcntl(0x7,0x3,0)
15848 scanimage RET   fcntl 0
15848 scanimage CALL  fcntl(0x7,0x4,0x4)
15848 scanimage RET   fcntl -1 errno 22 Invalid argument
15848 scanimage CALL  ioctl(0x7,_IOR('U',0x69,0x12),0x7d09dc10)
15848 scanimage RET   ioctl 0
15848 scanimage CALL  fstat(0x7,0xcfbf5dc0)
15848 scanimage RET   fstat 0
15848 scanimage CALL  fcntl(0x7,0x3,0)
15848 scanimage RET   fcntl 0
15848 scanimage CALL  fcntl(0x7,0x4,0)
15848 scanimage RET   fcntl -1 errno 22 Invalid argument
15848 scanimage CALL  close(0x7)
15848 scanimage RET   close 0

Any leads?
#####



More information about the sane-devel mailing list