[sane-devel] Getting HP ScanJet 5300C to work

Robert A. Schmied uwppp at flash.net
Tue Sep 4 21:42:58 BST 2018


Simon J. Rowe wrote:
> I am unable to get my elderly ScanJet 5300C working. I've used it 
> successfully in the past on Linux and it still works fine on WinXP.
> 
> My distro contains sane-backends-1.0.25-5.mga6
> 
> It is detected by the kernel
> 
> [ 9415.838484] usb 3-1: new full-speed USB device number 5 using uhci_hcd
> [ 9416.105505] usb 3-1: New USB device found, idVendor=03f0, idProduct=0701
> [ 9416.105508] usb 3-1: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=3
> [ 9416.105510] usb 3-1: Product: Hewlett Packard ScanJet 5300C/5370C
> [ 9416.105512] usb 3-1: Manufacturer: Hewlett Packard
> [ 9416.105514] usb 3-1: SerialNumber: TW07M23383VE
> 
> and by scanimage -L
> 
> [srowe at nimloth ~]$ scanimage -L
> device `v4l:/dev/video0' is a Noname Live! Cam Sync HD VF0770: Live! 
> virtual device
> device `avision:libusb:003:005' is a Hewlett-Packard ScanJet 5300C 
> flatbed scanner
> 
> but it hangs while trying to calibrate
> 
> [srowe at nimloth ~]$ scanimage -d avision:libusb:003:005 -T -v -v -v
> [sanei_debug] Setting debug level of avision to 7.
> [avision] sane_init:(Version: 1.0 Build: 297)
> [sanei_debug] Setting debug level of sanei_usb to 4.
> [sanei_usb] sanei_usb_init: initializing libusb-1.0
> [sanei_usb] sanei_usb_scan_devices: marking existing devices
> [sanei_usb] libusb_scan_devices: Looking for libusb-1.0 devices
> [sanei_usb] libusb_scan_devices: skipping device 0x041e/0x4095 at 
> 001:002: cannot open: Access denied (insufficient permissions)
> [sanei_usb] libusb_scan_devices: skipping device 0x1d6b/0x0002 at 
> 001:001: cannot open: Access denied (insufficient permissions)
> [sanei_usb] libusb_scan_devices: skipping device 0x1d6b/0x0001 at 
> 005:001: cannot open: Access denied (insufficient permissions)
> [sanei_usb] libusb_scan_devices: skipping device 0x1d6b/0x0001 at 
> 004:001: cannot open: Access denied (insufficient permissions)
> [sanei_usb] libusb_scan_devices: found libusb-1.0 device (0x03f0/0x0701) 
> interface 0 at libusb:003:005
> 
> ...
> 
> [avision] set_calib_data:
> [avision] set_calib_data: all channels in one command
> [avision] set_calib_data: send_size: 15912
> [avision] Timeouts: write: 30000, read: 30000, status: 10000
> [avision] avision_usb_status: timeout 10000, 1 retries
> [avision] ==> (interrupt read) going down ...
> [avision] <== (interrupt read) got: 1, status: 0
> [avision] send_gamma: table_raw_size: 512, table_size: 512
> [avision] send_gamma: values: 2, invert_table: 0
> [avision] send_gamma: brightness: 0.000000, contrast: 0.000000
> [avision] send_gamma: sending 512 bytes gamma table.
> [avision] Timeouts: write: 30000, read: 30000, status: 10000
> [sanei_usb] sanei_usb_write_bulk: write failed: Operation timed out
> [sanei_usb] sanei_usb_write_bulk: write failed: Operation timed out
> [avision] === Got error 9 trying to write, wrote: 0. ===
> [avision] try to read status to clear the FIFO
> [avision] avision_usb_status: timeout 500, 1 retries
> [avision] ==> (interrupt read) going down ...
> [avision] <== (interrupt read) got: 1, status: 2
> [avision] avision_usb_status: Needs to request sense!
> [avision] === Got error 4 trying to read status. ===
> [avision] send_gamma: gamma table upload failed: Error during device I/O
> [avision] sane_start: send gamma failed: Error during device I/O
> 
> Once it's failed the device cannot be detected until it is unplugged and 
> plugged back in.
> 
> Any ideas how I can debug what's going on?
> 
> Thanks
> 
> Simon
> 
> 

aloha simon

you might check to see if version sane-backends-1.0.27 made any
changes to avision and maybe even sanei_usb.  if so you would
probably be well served to install this newer version.

you also might check to see if there is a way to inhibit the
calibration operation, just to see if a scan can actually work.
try something like
     scanimage -v -d avision:libusb:003:005 -A
to get an idea of all the supported options for avision.


best of luck

ras



More information about the sane-devel mailing list