usb timeout reading scanner data while scan-head drives back

Bug #1269340 reported by Norbert Zawodsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

I use a quite old, but still functioning HP 3330 mfp "all in one" device.

If scanning a document, it looks like the device stops sending data while the scan-head is driving back to start position. In around 75% of this cases, hp-scan script reports

error: Error in reading data. Status=9 bytes_read=nnnnnn.

an the scan aborts. For example:

Setting output format to JPEG for color/lineart mode.
warning: Defaulting to '/home/norbert/scan/hpscan238.jpg'.

Warming up...

Scanning...
Expecting to read 1.0 MB from scanner.
Reading data: [****************************************************************************************************************************************************************************/ ] 93% 984.5 KB error: Error in reading data. Status=9 bytes_read=1008084.
Closing device.
norbert@rincewind:~/scan>

Sometimes I have to scan the same document 3 - 4 times until the scan goes through without an error.

This problem suddendly "appeared" some YEARS ago. But I always waiting for the next hplip version, hoping it would disappear agin. So I didn't file a bug report until now.

Ran hp-check script. See attached log.

Revision history for this message
Norbert Zawodsky (norbert-zawodsky) wrote :
Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi Norbert,

Can you try with following changes.

1) take a backup of models.dat file
   $ su -c 'cp /usr/share/hplip/data/models/models.dat /usr/share/hplip/data/models/models.dat_backup'

2) open models.dat file in root mode.
   $ su -c 'gedit /usr/share/hplip/data/models/models.dat'
    --> search for "[hp_laserjet_3330]" string
    --> few lines (around 10 lines) below, you will find "io-mfp-mode=3"
    --> change from "io-mfp-mode=3" to "io-mfp-mode=1"
   --> save and close file.

3) remove the print queue
   $ hp-setup -r

4) restart the printer and try to do scan

If you are still facing scanning issue, send us "/var/log/messages" (if present) and "/var/log/syslog"(if present) files.

Thanks & Regards,
Amarnath

Revision history for this message
Norbert Zawodsky (norbert-zawodsky) wrote :

Hi Amarnath,

I tried your changes:

 io-mfp-mode to "1", did hp-setup -r, then hp-setup, then hp-scan gives following error:

-------------------------------------------------------------------------------------
norbert@rincewind:~/scan> hp-scan -r 300 -m lineart --size=a4 --adf

HP Linux Imaging and Printing System (ver. 3.12.11)
Scan Utility ver. 2.2

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Using device: hpaio:/usb/HP_LaserJet_3330?serial=00SGH28C074R

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/HP_LaserJet_3330?serial=00SGH28C074R
Opening connection to device...
error: SANE: Invalid argument (code=4)
norbert@rincewind:~/scan>
-------------------------------------------------------------------------------------

/var/log/messages gives folowing lines:

2014-01-16T10:27:27.381840+01:00 rincewind hp-scan: hp-scan[29153]: warning: No destinations specified. Adding 'file' destination by default.
2014-01-16T10:27:27.455588+01:00 rincewind hp-scan: io/hpmud/pp.c 627: unable to read device-id ret=-1
2014-01-16T10:27:27.484745+01:00 rincewind hp-scan: io/hpmud/hpmud.c 223: invalid channel_open state, current io_mode=raw/uni service=HP-MESSAGE hp:/usb/HP_LaserJet_3330?serial=00SGH28C074R
2014-01-16T10:27:27.485248+01:00 rincewind hp-scan: failed to open pml channel: scan/sane/sclpml.c 390
2014-01-16T10:27:27.485598+01:00 rincewind hp-scan: hp-scan[29153]: error: SANE: Invalid argument (code=4)
2014-01-16T10:27:27.497050+01:00 rincewind hp-scan: io/hpmud/hpmud.c 346: device_cleanup: device uri=hp:/usb/HP_LaserJet_3330?serial=00SGH28C074R
2014-01-16T10:27:27.497395+01:00 rincewind hp-scan: io/hpmud/hpmud.c 358: device_cleanup: close device dd=1...
2014-01-16T10:27:27.497608+01:00 rincewind hp-scan: io/hpmud/hpmud.c 360: device_cleanup: done closing device dd=1

When I set io-mfp-mode back to "3", hp-scan immediately works again as before... (without doing running hp-setup -r )

Another suggestion ?

Regards,
Norbert

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.