[sane-devel] Why sane_read() always returns SANE_STATUS_GOOD?

Peter Chen peterchenn at hotmail.com
Sun Apr 27 15:21:46 BST 2003


Hi,
The sane list moderator said my email was too big, so I am sending
seperately:

Here is the debug output when I set SANE_DEBUG_FUJITSU=128:

[rter at localhost peter]$ export SANE_DEBUG_FUJITSU=128
[rter at localhost peter]$ scanimage -L
[sanei_debug] Setting debug level of fujitsu to 128.
[fujitsu] sane_init
[fujitsu] sane_init: reading config file fujitsu.conf
[fujitsu] attach_scanner: /dev/usb/scanner0
[fujitsu] attach_scanner: opening /dev/usb/scanner0
[fujitsu] attachScanner opening USB device
[fujitsu] identify_scanner
[fujitsu] do_inquiry
[fujitsu] inquiry
[fujitsu] 000: 12 00 00 00 60 00
[fujitsu] try inquiry 0
[fujitsu] <cmd<
[fujitsu] 000: 12 00 00 00 60 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 12 00 00 00 60 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] try to read 96 bytes
[fujitsu] read 96 bytes
[fujitsu] *** Data read:
[fujitsu] 000: 06 00 02 02 5b 00 00 10 46 55 4a 49 54 53 55 20
[fujitsu] 016: 66 69 2d 34 31 32 30 43 64 6a 20 20 20 20 20 20
[fujitsu] 032: 30 44 30 30 00 00 00 00 00 00 00 00 03 00 00 00
[fujitsu] 048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 96 bytes:
[fujitsu] >rslt>
[fujitsu] 000: 06 00 02 02 5b 00 00 10 46 55 4a 49 54 53 55 20
[fujitsu] 016: 66 69 2d 34 31 32 30 43 64 6a 20 20 20 20 20 20
[fujitsu] 032: 30 44 30 30 00 00 00 00 00 00 00 00 03 00 00 00
[fujitsu] 048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] Found FUJITSU scanner fi-4120Cdj version 0D00 on device
/dev/usb/scanner0, treating as fi-series
[fujitsu] get_vital_product_data
[fujitsu] get_vital_product_data
[fujitsu] 000: 12 01 f0 00 64 00
[fujitsu] <cmd<
[fujitsu] 000: 12 01 f0 00 64 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 12 01 f0 00 64 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] try to read 100 bytes
[fujitsu] read 100 bytes
[fujitsu] *** Data read:
[fujitsu] 000: 06 f0 02 00 5f 02 58 02 58 11 02 58 02 58 00 32
[fujitsu] 016: 00 32 ff fc 00 00 13 ec 00 00 41 a0 8f 00 00 00
[fujitsu] 032: 92 0a 01 00 00 00 00 00 ef bf 00 04 00 00 00 00
[fujitsu] 048: 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 080: 00 00 00 ff 00 00 41 01 a8 40 08 00 00 00 00 00
[fujitsu] 096: 00 00 00 00
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 100 bytes:
[fujitsu] >rslt>
[fujitsu] 000: 06 f0 02 00 5f 02 58 02 58 11 02 58 02 58 00 32
[fujitsu] 016: 00 32 ff fc 00 00 13 ec 00 00 41 a0 8f 00 00 00
[fujitsu] 032: 92 0a 01 00 00 00 00 00 ef bf 00 04 00 00 00 00
[fujitsu] 048: 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 080: 00 00 00 ff 00 00 41 01 a8 40 08 00 00 00 00 00
[fujitsu] standard options
[fujitsu]   basic x res: 600 dpi
[fujitsu]   basic y res: 600 dpi
[fujitsu]   step x res 1 dpi
[fujitsu]   step y res 1 dpi
[fujitsu]   max x res 600 dpi
[fujitsu]   max y res 600 dpi
[fujitsu]   min x res 50 dpi
[fujitsu]   max y res 50 dpi
[fujitsu]   window width 21.59 cm
[fujitsu]   window length 71.12 cm
[fujitsu] image memory: 16777216 bytes
[fujitsu] physical functions:
[fujitsu]    operator panel 1
[fujitsu]    barcode 0
[fujitsu]    endorser 0
[fujitsu]    duplex 1
[fujitsu]    flatbed 0
[fujitsu]    adf 1
[fujitsu] functions:
[fujitsu]    binary scanning: 1
[fujitsu]    gray scanning: 1
[fujitsu]    half-tone scanning: 1
[fujitsu]    color binary scanning: 0
[fujitsu]    color scanning: 1
[fujitsu]    color half-tone scanning: 0
[fujitsu] image control functions:
[fujitsu]    brightness steps: 0
[fujitsu]    threshold steps: 255
[fujitsu]    contrast steps: 0
[fujitsu]    number of build in gamma patterns: 0
[fujitsu]    number of download gamma patterns: 1
[fujitsu] compression processing functions:
[fujitsu]    compression MR: 0
[fujitsu]    compression MR: 0
[fujitsu]    compression MMR: 0
[fujitsu]    compression JBIG: 0
[fujitsu]    compression JPG1: 1
[fujitsu]    compression JPG2: 0
[fujitsu]    compression JPG3: 0
[fujitsu] image processing functions:
[fujitsu]    black and white reverse: 1
[fujitsu]    automatic binary DTC: 0
[fujitsu]    simplified DTC: 1
[fujitsu]    autline extraction: 0
[fujitsu]    image emphasis: 1
[fujitsu]    automatic separation: 0
[fujitsu]    mirror image: 0
[fujitsu]    white level follower: 0
[fujitsu]

[fujitsu] range: 14149222 46609203
[fujitsu]       ADF: present
[fujitsu]       Duplex Unit: present
[fujitsu]       Duplex Raster Offset: 0
[fujitsu]       Color Raster Offset: 0
[fujitsu] attach_scanner: done
[fujitsu] sane_get_devices 0
device `fujitsu:/dev/usb/scanner0' is a FUJITSU fi-4120Cdj scanner
[fujitsu] sane_exit
[rter at localhost peter]$ scanimage --duplex=both -d fujitsu:/dev/usb/scanner0
> a.pnm
[sanei_debug] Setting debug level of fujitsu to 128.
[fujitsu] sane_init
[fujitsu] sane_init: reading config file fujitsu.conf
[fujitsu] attach_scanner: /dev/usb/scanner0
[fujitsu] attach_scanner: opening /dev/usb/scanner0
[fujitsu] attachScanner opening USB device
[fujitsu] identify_scanner
[fujitsu] do_inquiry
[fujitsu] inquiry
[fujitsu] 000: 12 00 00 00 60 00
[fujitsu] try inquiry 0
[fujitsu] <cmd<
[fujitsu] 000: 12 00 00 00 60 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 12 00 00 00 60 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] try to read 96 bytes
[fujitsu] read 96 bytes
[fujitsu] *** Data read:
[fujitsu] 000: 06 00 02 02 5b 00 00 10 46 55 4a 49 54 53 55 20
[fujitsu] 016: 66 69 2d 34 31 32 30 43 64 6a 20 20 20 20 20 20
[fujitsu] 032: 30 44 30 30 00 00 00 00 00 00 00 00 03 00 00 00
[fujitsu] 048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 96 bytes:
[fujitsu] >rslt>
[fujitsu] 000: 06 00 02 02 5b 00 00 10 46 55 4a 49 54 53 55 20
[fujitsu] 016: 66 69 2d 34 31 32 30 43 64 6a 20 20 20 20 20 20
[fujitsu] 032: 30 44 30 30 00 00 00 00 00 00 00 00 03 00 00 00
[fujitsu] 048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] Found FUJITSU scanner fi-4120Cdj version 0D00 on device
/dev/usb/scanner0, treating as fi-series
[fujitsu] get_vital_product_data
[fujitsu] get_vital_product_data
[fujitsu] 000: 12 01 f0 00 64 00
[fujitsu] <cmd<
[fujitsu] 000: 12 01 f0 00 64 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 12 01 f0 00 64 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] try to read 100 bytes
[fujitsu] read 100 bytes
[fujitsu] *** Data read:
[fujitsu] 000: 06 f0 02 00 5f 02 58 02 58 11 02 58 02 58 00 32
[fujitsu] 016: 00 32 ff fc 00 00 13 ec 00 00 41 a0 8f 00 00 00
[fujitsu] 032: 92 0a 01 00 00 00 00 00 ef bf 00 04 00 00 00 00
[fujitsu] 048: 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 080: 00 00 00 ff 00 00 41 01 a8 40 08 00 00 00 00 00
[fujitsu] 096: 00 00 00 00
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 100 bytes:
[fujitsu] >rslt>
[fujitsu] 000: 06 f0 02 00 5f 02 58 02 58 11 02 58 02 58 00 32
[fujitsu] 016: 00 32 ff fc 00 00 13 ec 00 00 41 a0 8f 00 00 00
[fujitsu] 032: 92 0a 01 00 00 00 00 00 ef bf 00 04 00 00 00 00
[fujitsu] 048: 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 080: 00 00 00 ff 00 00 41 01 a8 40 08 00 00 00 00 00
[fujitsu] standard options
[fujitsu]   basic x res: 600 dpi
[fujitsu]   basic y res: 600 dpi
[fujitsu]   step x res 1 dpi
[fujitsu]   step y res 1 dpi
[fujitsu]   max x res 600 dpi
[fujitsu]   max y res 600 dpi
[fujitsu]   min x res 50 dpi
[fujitsu]   max y res 50 dpi
[fujitsu]   window width 21.59 cm
[fujitsu]   window length 71.12 cm
[fujitsu] image memory: 16777216 bytes
[fujitsu] physical functions:
[fujitsu]    operator panel 1
[fujitsu]    barcode 0
[fujitsu]    endorser 0
[fujitsu]    duplex 1
[fujitsu]    flatbed 0
[fujitsu]    adf 1
[fujitsu] functions:
[fujitsu]    binary scanning: 1
[fujitsu]    gray scanning: 1
[fujitsu]    half-tone scanning: 1
[fujitsu]    color binary scanning: 0
[fujitsu]    color scanning: 1
[fujitsu]    color half-tone scanning: 0
[fujitsu] image control functions:
[fujitsu]    brightness steps: 0
[fujitsu]    threshold steps: 255
[fujitsu]    contrast steps: 0
[fujitsu]    number of build in gamma patterns: 0
[fujitsu]    number of download gamma patterns: 1
[fujitsu] compression processing functions:
[fujitsu]    compression MR: 0
[fujitsu]    compression MR: 0
[fujitsu]    compression MMR: 0
[fujitsu]    compression JBIG: 0
[fujitsu]    compression JPG1: 1
[fujitsu]    compression JPG2: 0
[fujitsu]    compression JPG3: 0
[fujitsu] image processing functions:
[fujitsu]    black and white reverse: 1
[fujitsu]    automatic binary DTC: 0
[fujitsu]    simplified DTC: 1
[fujitsu]    autline extraction: 0
[fujitsu]    image emphasis: 1
[fujitsu]    automatic separation: 0
[fujitsu]    mirror image: 0
[fujitsu]    white level follower: 0
[fujitsu]

[fujitsu] range: 14149222 46609203
[fujitsu]       ADF: present
[fujitsu]       Duplex Unit: present
[fujitsu]       Duplex Raster Offset: 0
[fujitsu]       Color Raster Offset: 0
[fujitsu] attach_scanner: done
[fujitsu] sane_open /dev/usb/scanner0
[fujitsu] init_options
[fujitsu] init_options:ok
[fujitsu] calculateDerivedValues
[fujitsu]       top_margin: 0
[fujitsu]       left_margin: 0
[fujitsu]       scan_width: 0
[fujitsu]       scan_height: 0
[fujitsu] calculateDerivedValues: ok
[fujitsu] sane_control_option: get value "filler"
[fujitsu]       cap = 4
[fujitsu] sane_control_option: get value "filler"
[fujitsu]       cap = 4
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "source"
[fujitsu] sane_get_option_descriptor: "mode"
[fujitsu] sane_get_option_descriptor: "duplex"
[fujitsu] sane_get_option_descriptor: "resolution"
[fujitsu] sane_get_option_descriptor: "y-resolution"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "tl-x"
[fujitsu] sane_get_option_descriptor: "tl-y"
[fujitsu] sane_get_option_descriptor: "br-x"
[fujitsu] sane_control_option: get value "br-x"
[fujitsu]       cap = 5
[fujitsu] sane_get_option_descriptor: "br-y"
[fujitsu] sane_control_option: get value "br-y"
[fujitsu]       cap = 5
[fujitsu] sane_get_option_descriptor: "pagewidth"
[fujitsu] sane_get_option_descriptor: "pageheight"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "averaging"
[fujitsu] sane_get_option_descriptor: "brightness"
[fujitsu] sane_get_option_descriptor: "threshold"
[fujitsu] sane_get_option_descriptor: "contrast"
[fujitsu] sane_get_option_descriptor: "rif"
[fujitsu] sane_get_option_descriptor: "compression"
[fujitsu] sane_get_option_descriptor: "dtc_selection"
[fujitsu] sane_get_option_descriptor: "gamma"
[fujitsu] sane_get_option_descriptor: "outline"
[fujitsu] sane_get_option_descriptor: "emphasis"
[fujitsu] sane_get_option_descriptor: "autoseparation"
[fujitsu] sane_get_option_descriptor: "mirroring"
[fujitsu] sane_get_option_descriptor: "variance_rate"
[fujitsu] sane_get_option_descriptor: "threshold_curve"
[fujitsu] sane_get_option_descriptor: "gradation"
[fujitsu] sane_get_option_descriptor: "smoothing_mode"
[fujitsu] sane_get_option_descriptor: "filtering"
[fujitsu] sane_get_option_descriptor: "background"
[fujitsu] sane_get_option_descriptor: "noise_removal"
[fujitsu] sane_get_option_descriptor: "matrix_2x2"
[fujitsu] sane_get_option_descriptor: "matrix_3x3"
[fujitsu] sane_get_option_descriptor: "matrix_4x4"
[fujitsu] sane_get_option_descriptor: "matrix_5x5"
[fujitsu] sane_get_option_descriptor: "white_level_follow"
[fujitsu] sane_get_option_descriptor: "paper_size"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "orientation"
[fujitsu] sane_get_option_descriptor: "dropout_color"
[fujitsu] sane_get_option_descriptor: "start_button"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "lampcolor"
[fujitsu] sane_get_option_descriptor: "blueoffset"
[fujitsu] sane_get_option_descriptor: "greenoffset"
[fujitsu] sane_get_option_descriptor: "swapfile"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "filler"
[fujitsu] sane_get_option_descriptor: "sleep_timer"
[fujitsu] sane_control_option: get value "tl-x"
[fujitsu]       cap = 5
[fujitsu] sane_control_option: get value "tl-y"
[fujitsu]       cap = 5
optarg is both
[fujitsu] sane_get_option_descriptor: "duplex"
[fujitsu] sane_get_option_descriptor: "duplex"
optnum is 4, orig is 0
[fujitsu] sane_control_option: set value "duplex"
[fujitsu] sane_control_option: get value "tl-x"
[fujitsu]       cap = 5
[fujitsu] sane_get_option_descriptor: "br-x"
optnum is 10, orig is 14090240
[fujitsu] sane_control_option: set value "br-x"
[fujitsu] calculateDerivedValues
[fujitsu]       top_margin: 0
[fujitsu]       left_margin: 0
[fujitsu]       scan_width: 10157
[fujitsu]       scan_height: 14031
[fujitsu] calculateDerivedValues: ok
scanimage: rounded value of br-x from 215 to 215.004
[fujitsu] sane_control_option: get value "tl-y"
[fujitsu]       cap = 5
[fujitsu] sane_get_option_descriptor: "br-y"
optnum is 11, orig is 19464192
[fujitsu] sane_control_option: set value "br-y"
[fujitsu] calculateDerivedValues
[fujitsu]       top_margin: 0
[fujitsu]       left_margin: 0
[fujitsu]       scan_width: 10157
[fujitsu]       scan_height: 14031
[fujitsu] calculateDerivedValues: ok
scanimage: rounded value of br-y from 297 to 296.994
[fujitsu] sane_start
[fujitsu]       object_count = 0
[fujitsu]       duplex_mode = DUPLEX_BOTH
[fujitsu]       use_temp_file = no
[fujitsu] sane_start opening USB device
[fujitsu] grab_scanner
[fujitsu] wait_scanner
[fujitsu] test_unit_ready
[fujitsu] 000: 00 00 00 00 00 00
[fujitsu] <cmd<
[fujitsu] 000: 00 00 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] wait_scanner: ok
[fujitsu] reserve_unit
[fujitsu] 000: 16 00 00 00 00 00
[fujitsu] <cmd<
[fujitsu] 000: 16 00 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] grab_scanner: ok
[fujitsu] mode_select
[fujitsu] 000: 15 10 00 00 0c 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 34 06 0f 00 00 00 00 00
[fujitsu] <cmd<
[fujitsu] 000: 15 10 00 00 0c 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 34 06 0f 00 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 15 10 00 00 0c 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** URB going out:
[fujitsu] 000: 00 00 00 00 34 06 0f 00 00 00 00 00
[fujitsu] try to write 12 bytes
[fujitsu] wrote 12 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] set_sleep_mode: ok
[fujitsu] set_mode_params
[fujitsu] set_mode_params: ok
[fujitsu] send
[fujitsu] send: ok
[fujitsu] object_position: load
[fujitsu] object_position
[fujitsu] 000: 31 01 00 00 00 00 00 00 00 00
[fujitsu] <cmd<
[fujitsu] 000: 31 01 00 00 00 00 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 31 01 00 00 00 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] wait_scanner
[fujitsu] test_unit_ready
[fujitsu] 000: 00 00 00 00 00 00
[fujitsu] <cmd<
[fujitsu] 000: 00 00 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] wait_scanner: ok
[fujitsu] object_position: ok
[fujitsu] wait_scanner
[fujitsu] test_unit_ready
[fujitsu] 000: 00 00 00 00 00 00
[fujitsu] <cmd<
[fujitsu] 000: 00 00 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] wait_scanner: ok
[fujitsu] set_window_param
[fujitsu] Window set - front
[fujitsu] 000: 00 00 01 2c 01 2c 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 27 ad 00 00 36 cf 00 00 00 05 08 00 00 00 00 00
[fujitsu] 032: 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
[fujitsu] 048: 20 00 00 00 00 c0 00 00 27 ad 00 00 36 cf 00 00
[fujitsu] Window set - back
[fujitsu] 000: 80 00 01 2c 01 2c 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 27 ad 00 00 36 cf 00 00 00 05 08 00 00 00 00 00
[fujitsu] 032: 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
[fujitsu] 048: 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] <cmd<
[fujitsu] 000: 24 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 40 00 00 01 2c 01 2c 00 00 00 00 00 00
[fujitsu] 032: 00 00 00 00 27 ad 00 00 36 cf 00 00 00 05 08 00
[fujitsu] 048: 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00
[fujitsu] 064: 00 00 00 00 20 00 00 00 00 c0 00 00 27 ad 00 00
[fujitsu] 080: 36 cf 00 00 80 00 01 2c 01 2c 00 00 00 00 00 00
[fujitsu] 096: 00 00 00 00 27 ad 00 00 36 cf 00 00 00 05 08 00
[fujitsu] 112: 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00
[fujitsu] 128: 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 144: 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 24 00 00 00 00 00 00 00 88 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** URB going out:
[fujitsu] 000: 00 00 00 00 00 00 00 40 00 00 01 2c 01 2c 00 00
[fujitsu] 016: 00 00 00 00 00 00 00 00 27 ad 00 00 36 cf 00 00
[fujitsu] 032: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 048: 00 80 00 00 00 00 00 00 20 00 00 00 00 c0 00 00
[fujitsu] try to write 64 bytes
[fujitsu] wrote 64 bytes
[fujitsu] *** URB going out:
[fujitsu] 000: 27 ad 00 00 36 cf 00 00 80 00 01 2c 01 2c 00 00
[fujitsu] 016: 00 00 00 00 00 00 00 00 27 ad 00 00 36 cf 00 00
[fujitsu] 032: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 048: 00 80 00 00 00 00 00 00 20 00 00 00 00 00 00 00
[fujitsu] try to write 64 bytes
[fujitsu] wrote 64 bytes
[fujitsu] *** URB going out:
[fujitsu] 000: 00 00 00 00 00 00 00 00
[fujitsu] try to write 8 bytes
[fujitsu] wrote 8 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] set_window_param: ok
[fujitsu] calculateDerivedValues
[fujitsu]       top_margin: 0
[fujitsu]       left_margin: 0
[fujitsu]       scan_width: 10157
[fujitsu]       scan_height: 14031
[fujitsu] calculateDerivedValues: ok
[fujitsu]       bytes per line = 7617
[fujitsu]       pixels_per_line = 2539
[fujitsu]       lines = 3507
[fujitsu]       brightness (halftone) = 0
[fujitsu]       threshold (line art) = 0
[fujitsu] start_scan
[fujitsu] start_scan
[fujitsu] 000: 1b 00 00 00 02 00 00 80
[fujitsu] <cmd<
[fujitsu] 000: 1b 00 00 00 02 00 00 80
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 1b 00 00 00 02 00 00 80 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** URB going out:
[fujitsu] 000: 00
[fujitsu] try to write 1 bytes
[fujitsu] wrote 1 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 02 00 00 00
[fujitsu] Got bad status: 02 op_code=1b ret=0 req_out_len=0 ol=0
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] <cmd<
[fujitsu] 000: 03 00 00 00 12 00 00 00 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 03 00 00 00 12 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] try to read 18 bytes
[fujitsu] read 18 bytes
[fujitsu] *** Data read:
[fujitsu] 000: f0 00 45 00 00 00 00 0a 00 00 00 00 26 00 00 80
[fujitsu] 016: 00 00
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 18 bytes:
[fujitsu] >rslt>
[fujitsu] 000: f0 00 45 00 00 00 00 0a 00 00 00 00 26 00 00 80
[fujitsu] 016: 00 00
[fujitsu]       5/38/0: Invalid field in parm list
[fujitsu] offending byte is 0. (Byte -8 in window descriptor block)
[fujitsu] start_scan failedscanimage: sane_start: Invalid argument
[fujitsu] sane_cancel
[fujitsu] do_cancel
[fujitsu] free_scanner
[fujitsu] release_unit
[fujitsu] 000: 17 00 00 00 00 00
[fujitsu] <cmd<
[fujitsu] 000: 17 00 00 00 00 00
[fujitsu] *** URB going out:
[fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] 016: 00 00 00 17 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] try to write 31 bytes
[fujitsu] wrote 31 bytes
[fujitsu] *** Try to read CSW
[fujitsu] *** Read CSW
[fujitsu] 000: 53 00 00 00 00 00 00 00 00 00 00 00 00
[fujitsu] do_usb_cmd: returning 0 bytes:
[fujitsu] free_scanner: ok
[fujitsu] do_cancel: close filedescriptor
[fujitsu] sane_close
[fujitsu] sane_exit
[rter at localhost peter]$

Thanks,

Peter

----- Original Message -----
From: "Henning Meier-Geinitz" <henning at meier-geinitz.de>
To: "SANE Mailing List" <sane-devel at mostang.com>
Sent: Saturday, April 26, 2003 7:35 AM
Subject: Re: [sane-devel] Why sane_read() always returns SANE_STATUS_GOOD?


> Hi,
>
> On Fri, Apr 25, 2003 at 10:11:11PM +0200, Henning Meier-Geinitz wrote:
> > Does that also happen if you use the tesb backend instead of the
> > fujitsu backend? That's a good test to find out if you are doing
> > something wrong in the frontend or if it's a backend bug.
>
> I was talking about the "test" backend. I should really use a spell
> checker :-)
>
> Anyway, enabling "test" in dll.conf may be useful in this case.
>
> Bye,
>   Henning
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
>



More information about the sane-devel mailing list