[sane-devel] HP ScanJet 7400c open of device faled: invalid arguement

Chen, Xianwen Xianwen.Chen at nina.no
Tue Apr 26 16:47:42 UTC 2016


Hello Johannes,

Thank you.

'lsusb' returns:
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0c45:649d Microdia
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 413c:5534 Dell Computer Corp.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 033: ID 03f0:0801 Hewlett-Packard ScanJet 7400c
Bus 003 Device 024: ID 0b33:0702 Contour Design, Inc.
Bus 003 Device 023: ID 049f:0005 Compaq Computer Corp.
Bus 003 Device 021: ID 413c:2134 Dell Computer Corp.
Bus 003 Device 031: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy (MTP)
Bus 003 Device 022: ID 413c:2513 Dell Computer Corp. internal USB Hub
of E-Port Replicator
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


'lsusb -t' returns:
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
    |__ Port 3: Dev 3, If 0, Class=Hub, Driver=hub/3p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
    |__ Port 3: Dev 31, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 4: Dev 21, If 0, Class=Hub, Driver=hub/3p, 480M
        |__ Port 1: Dev 23, If 0, Class=Human Interface Device,
Driver=usbhid, 1.5M
        |__ Port 1: Dev 23, If 1, Class=Human Interface Device,
Driver=usbhid, 1.5M
        |__ Port 2: Dev 24, If 0, Class=Human Interface Device,
Driver=usbhid, 1.5M
    |__ Port 6: Dev 33, If 0, Class=, Driver=, 12M
    |__ Port 13: Dev 22, If 0, Class=Hub, Driver=hub/3p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 5: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 5: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M


According to http://www.sane-project.org/sane-mfgs.html, the current
status of sane's support for the scanner is 'Good', with backend of
'avision (Build: 296)'.

Because the following outputs are too large, I have put them onto
pastebin. Notice that the device number increases each time I
reconnected the scanner to the laptop.

After plugin the USB cable of the scanner to the laptop, 'scanimage
-L' returns: http://pastebin.com/t7juYziM
Detailed debug output with 'SANE_DEBUG_DLL=4' set is:
http://pastebin.com/BDyH666C.
Detailed debug output with 'SANE_DEBUG_AVISION=128' set is:
http://pastebin.com/4ujx9En2
Detailed debug output with 'SANE_DEBUG_SANEI_USB=128' set is:
http://pastebin.com/EXEqhsi1

However, if I run 'scanimage -L' again, everything is the same, except
the scanner disappeared: http://pastebin.com/x8b0e2i6.
Detailed debug output with 'SANE_DEBUG_DLL=4' set is:
http://pastebin.com/aFRQseiz. I noticed that it took a long time
before next output was prompted, after the line "[dll] init:
initializing backend `avision'" (line 457 in pastebin) was shown.
Detailed debug output with 'SANE_DEBUG_AVISION=128' set is:
http://pastebin.com/JjrCK86A. It took a long time before next output
was prompted, after the line "[avision] try to write cmd, count: 10."
(line 129 in the pastebin) was shown.
Detailed debug output with 'SANE_DEBUG_SANEI_USB=128' set is:
http://pastebin.com/4UXet7rL. It took a long time before next output
was prompted, after the line "[sanei_usb] 000 12 00 00 00 60 00 00 00
00 00                   ....`..... " (line 2570 in the pastebin) was
shown.

I tried to run 'scanimage -L' for the third time after USB cable is
reconnected once, the output with 'SANE_DEBUG_AVISION=128' is here:
http://pastebin.com/A5ZRC20L. You can see that scanimage actually
found two scanners. I ran it again, scanimage only found one scanner.
It seems that scanimage would always find the 7400c when running for
the first time after the cable is plugged in.In the second time always
failed to find the scanner. In the third time, maybe find the scanner.

Do these debug output provide any meaning information?

Kind regards,

Xianwen

On Tue, Apr 26, 2016 at 4:41 PM, Johannes Meixner <jsmeix at suse.de> wrote:
>
> Hello,
>
> On Apr 24 11:58 Chen, Xianwen wrote (excerpt):
>>
>> lsusb recognizes the scanner:
>> Bus 003 Device 008: ID 03f0:0801 Hewlett-Packard ScanJet 7400c
>
>
> What do both commands
>   lsusb
> and
>   lsusb -t
> show (the full "lsusb -t" output is needed).
>
>
>> What can I do to (1) provide more debug information
>
>
> See "Trouble-Shooting (Debugging)" at
> https://en.opensuse.org/SDB:Configuring_Scanners
>
>
> Kind Regards
> Johannes Meixner
> --
> SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
> Graham Norton - HRB 21284 (AG Nuernberg)
>



-- 
Xianwen Chen, PhD
Research Scientist

Norwegian Institute for Nature Research – NINA, Oslo Division
Address: Gaustadalléen 21, 0349 Oslo, Norway

Phone: +47 73 80 14 00 • Cell: +47 984 21 622 (Norway); +1 (307) 223
2032 (US) • Skype: xianwen.chen • Fax: +47 73 80 14 01

Email: xianwen.chen at nina.noxianwen.chen at gmail.com

Website: www.nina.no/english/Contact/Employees/Employee-info/AnsattID/15397
• xchen.cf

_______________________________________________

What's New?

Chen, Xianwen and Roberto J. Garcia.  2016.  “Economic Sanctions and
Trade Diplomacy: Sanction-Busting Strategies, Market Distortion and
Efficacy of China’s Restrictions against Norwegian Salmon Imports.”
China Information: A Journal on Contemporary China Studies 30(1): pp.
29–57.


Chen, Xianwen, Frode Alfnes, and Kyrre Rickertsen.  2015.  “Consumer
Preferences, Ecolabels,  and  Effects  of  Negative  Environmental
Information.” AgBioForum: The Journal of Agrobiotechnology Management
& Economics 18(3): pp. 327–336.

_______________________________________________



Norsk institutt for naturforskning


More information about the sane-devel mailing list