Discussion:
Nikon Coolscan V ED: Error during device I/O
(too old to reply)
Sebastian Niehaus
2017-12-11 07:47:37 UTC
Permalink
Hi,

I try to use a Nikon Coolscan 5 ED using Debian 9.3 AKA Stretch.


Scanner ought to be supported with the coolscan3 backend.

"scanimage -L" needs very long to list the scanner.
"scanimage -T" reports "Error during device I/O"



Scanner "disappears" after one "scanimage -L" or any other request to do
anything else meaning it is not displayed by doing "scanimage -L"
another time.


Full session as root (to make sore it's not a matter of permissions)


***@radioactive:~# sane-find-scanner -q
found USB scanner (vendor=0x04b0 [Nikon], product=0x4001 [LS-50 ED]) at
libusb:001:027
***@radioactive:~# sane-find-scanner -L
unknown option: -L, try -h for help
***@radioactive:~# scanimage -L
device `coolscan3:usb:libusb:001:027' is a Nikon LS-50 ED film scanner
***@radioactive:~# scanimage -T
scanimage: no SANE devices found

[power cycling the scanner]

***@radioactive:~# scanimage -T
scanimage: open of device coolscan3:usb:libusb:001:028 failed: Error
during device I/O
***@radioactive:~#



Any ideas what could be wrong? Any information you might need in addition?


Thank you very much!


Sebastian
Sebastian Niehaus
2017-12-10 20:18:22 UTC
Permalink
Hi,

I try to use a Nikon Coolscan 5 ED using Debian 9.3 AKA Stretch.


Scanner ought to be supported with the coolscan3 backend.

"scanimage -L" needs very long to list the scanner.
"scanimage -T" reports "Error during device I/O"



Scanner "disappears" after one "scanimage -L" or any other request to do
anything else meaning it is not displayed by doing "scanimage -L"
another time.


Full session as root (to make sore it's not a matter of permissions)


***@radioactive:~# sane-find-scanner -q
found USB scanner (vendor=0x04b0 [Nikon], product=0x4001 [LS-50 ED]) at
libusb:001:027
***@radioactive:~# sane-find-scanner -L
unknown option: -L, try -h for help
***@radioactive:~# scanimage -L
device `coolscan3:usb:libusb:001:027' is a Nikon LS-50 ED film scanner
***@radioactive:~# scanimage -T
scanimage: no SANE devices found

[power cycling the scanner]

***@radioactive:~# scanimage -T
scanimage: open of device coolscan3:usb:libusb:001:028 failed: Error
during device I/O
***@radioactive:~#



Any ideas what could be wrong? Any information you might need in addition?


Thank you very much!


Sebastian
Sebastian Niehaus
2017-12-12 21:09:01 UTC
Permalink
Hi,
You did not tell us what version of sane-backends you are running.
Assuming that it is 1.0.27, there is an environment variable that may
help. Try running
Sane is 1.0.14 (which seems to be identical for all debian releases form
oldoldstable to unstable. However the backend seems to be version 1.1.0
(see debug log below...)
SANE_USB_WORKAROUND=1 scanmage -L
repeatedly, and see if the scanner is listed every time.
The scanner is listed only for the first try and not the second one.

After reading the man page I tried the debug environment variable:



***@radioactive:~ $ SANE_DEBUG_COOLSCAN3=128 scanimage -L
[sanei_debug] Setting debug level of coolscan3 to 128.
[coolscan3] coolscan3 backend, version 1.0.0 initializing.
[coolscan3] sane_coolscan3_get_devices
[coolscan3] sane_get_devices(): Reading config file.
[coolscan3] cs3_open, device = auto, interface = 0
[coolscan3] cs3_open, device = libusb:001:058, interface = 2
[coolscan3] cs3_open, trying to open libusb:001:058, assuming USB interface
[coolscan3] cs3_open, trying to identify device.
[coolscan3] cs3_issue_cmd(): opcode = 0x00, n_send = 6, n_recv = 0.
[coolscan3] cs3_issue_cmd(): opcode = 0x12, n_send = 6, n_recv = 36.
[coolscan3] cs3_phase_check: returned phase = 0x03.
[coolscan3] cs3_open, vendor = 'Nikon ', product = 'LS-50 ED ',
revision = '1.02'.
[coolscan3] cs3_open, device identified as coolscan3 type #3.
[coolscan3] cs3_open, device = usb:/dev/usbscanner, interface = 0
[coolscan3] cs3_open, device = /dev/usbscanner, interface = 2
[coolscan3] cs3_open, trying to open /dev/usbscanner, assuming USB interface
[coolscan3] ...failed: Invalid argument.
[coolscan3] sane_coolscan3_get_devices: 1 device(s) detected.
device `coolscan3:usb:libusb:001:058' is a Nikon LS-50 ED film scanner
[coolscan3] sane_coolscan3_exit

This was the first try, so I did a second one immediatly afterwards:

***@radioactive:~ $ SANE_DEBUG_COOLSCAN3=128 scanimage -L
[sanei_debug] Setting debug level of coolscan3 to 128.
[coolscan3] coolscan3 backend, version 1.0.0 initializing.
[coolscan3] sane_coolscan3_get_devices
[coolscan3] sane_get_devices(): Reading config file.
[coolscan3] cs3_open, device = auto, interface = 0
[coolscan3] cs3_open, device = libusb:001:058, interface = 2
[coolscan3] cs3_open, trying to open libusb:001:058, assuming USB interface
[coolscan3] cs3_open, trying to identify device.
[coolscan3] cs3_issue_cmd(): opcode = 0x00, n_send = 6, n_recv = 0.
[coolscan3] cs3_issue_cmd(): opcode = 0x12, n_send = 6, n_recv = 36.
[coolscan3] cs3_phase_check: returned phase = 0x00.
[coolscan3] cs3_issue_cmd: Unexpected non-data phase, but n_data != 0 (36).
[coolscan3] Error: cs3_issue_cmd(): Failed to read 8 status bytes from USB.
[coolscan3] Error: cs3_page_inquiry: inquiry of page failed: Error
during device I/O.
[coolscan3] cs3_open, device = usb:/dev/usbscanner, interface = 0
[coolscan3] cs3_open, device = /dev/usbscanner, interface = 2
[coolscan3] cs3_open, trying to open /dev/usbscanner, assuming USB interface
[coolscan3] ...failed: Invalid argument.
[coolscan3] sane_coolscan3_get_devices: 0 device(s) detected.

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[coolscan3] sane_coolscan3_exit



I have no idea what this could mean. Any hints for me? Anything I can do
to find out why I fail to use the scanner?


Sebastian
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-***@lists.alioth.debian.org
Sebastian Niehaus
2017-12-12 21:13:53 UTC
Permalink
Post by Sebastian Niehaus
Sane is 1.0.14 (which seems to be identical for all debian releases form
oldoldstable to unstable. However the backend seems to be version 1.1.0
(see debug log below...)
"libsane-common" which includes the coolscan3 driver is version 1.0.25

https://packages.debian.org/stretch/libsane-common


Sebastian
Jeff
2017-12-13 20:37:12 UTC
Permalink
Post by Sebastian Niehaus
Sane is 1.0.14 (which seems to be identical for all debian releases form
oldoldstable to unstable. However the backend seems to be version 1.1.0
(see debug log below...)
Hmm. I am running Debian. sid, buster and stretch have 1.0.25:

https://packages.debian.org/sid/libsane

jessie has 1.0.24 and wheezy 1.0.22.

Regards

Jeff

Loading...