hi, I tried to do a duplex scan with a fujitsu fi-4120c and USB interface ( the source code is 2004-08-24 version). It can not correctly scan with the duplex mode of "both"(paper are half locked in the machine). When set duplex mode to "back", it scan the same side as mode "front". I found an article at http://lists.alioth.debian.org/pipermail/sane-devel/2004-April/010688.html, but no more information about the solution. I find a "[fujitsu] 5/38/0: Invalid field in parm list " in the error log. what's mean? Do the new version of the fujitsu backend solved this problem? Where can I download the fixed version? thanks! Best Regards, Qian 05/14/2005 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [fujitsu] sane_start [fujitsu] object_count = 0 [fujitsu] duplex_mode = DUPLEX_BOTH [fujitsu] use_temp_file = no [fujitsu] sane_start opening USB device [sanei_usb] sanei_usb_open: trying to open device `/dev/usb/scanner0' [sanei_usb] sanei_usb_open: opened usb device `/dev/usb/scanner0' (*dn=0) [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] 010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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] 010: 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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] 010: 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] 010: 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] 010: 00 00 00 15 10 00 00 0c 00 00 00 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 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 [sanei_usb] sanei_usb_write_bulk: trying to write 12 bytes [sanei_usb] sanei_usb_write_bulk: wanted 12 bytes, wrote 12 bytes [fujitsu] wrote 12 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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] mode_select [fujitsu] 000: 15 10 00 00 0e 00 00 00 00 00 39 08 00 00 00 00 [fujitsu] 010: 00 00 00 00 [fujitsu] <cmd< [fujitsu] 000: 15 10 00 00 0e 00 00 00 00 00 39 08 00 00 00 00 [fujitsu] 010: 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] 010: 00 00 00 15 10 00 00 0e 00 00 00 00 00 39 08 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] *** URB going out: [fujitsu] 000: 00 00 00 00 00 00 00 00 [fujitsu] try to write 8 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 8 bytes [sanei_usb] sanei_usb_write_bulk: wanted 8 bytes, wrote 8 bytes [fujitsu] wrote 8 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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=15 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] 010: 00 00 00 03 00 00 00 12 00 00 00 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] try to read 18 bytes [sanei_usb] sanei_usb_read_bulk: trying to read 18 bytes [sanei_usb] sanei_usb_read_bulk: wanted 18 bytes, got 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] 010: 00 05 [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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] 010: 00 05 [fujitsu] 5/38/0: Invalid field in parm list [fujitsu] offending byte is 5. (Byte fffffffd in window descriptor block) [fujitsu] sane_start: ERROR: failed to set mode [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] 010: 00 00 00 31 01 00 00 00 00 00 00 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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] 010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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] 010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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 00 96 00 96 00 00 09 be 00 00 00 00 00 00 [fujitsu] 010: 14 a1 00 00 1f 6d 00 00 00 05 08 00 00 00 00 00 [fujitsu] 020: 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 [fujitsu] 030: 20 00 00 00 00 c0 00 00 27 ad 00 00 36 cf 00 00 [fujitsu] Window set - back [fujitsu] 000: 80 00 00 96 00 96 00 00 09 be 00 00 00 00 00 00 [fujitsu] 010: 14 a1 00 00 1f 6d 00 00 00 05 08 00 00 00 00 00 [fujitsu] 020: 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 [fujitsu] 030: 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] 010: 00 00 00 40 00 00 00 96 00 96 00 00 09 be 00 00 [fujitsu] 020: 00 00 00 00 14 a1 00 00 1f 6d 00 00 00 05 08 00 [fujitsu] 030: 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 [fujitsu] 040: 00 00 00 00 20 00 00 00 00 c0 00 00 27 ad 00 00 [fujitsu] 050: 36 cf 00 00 80 00 00 96 00 96 00 00 09 be 00 00 [fujitsu] 060: 00 00 00 00 14 a1 00 00 1f 6d 00 00 00 05 08 00 [fujitsu] 070: 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 [fujitsu] 080: 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 [fujitsu] 090: 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] 010: 00 00 00 24 00 00 00 00 00 00 00 88 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] *** URB going out: [fujitsu] 000: 00 00 00 00 00 00 00 40 00 00 00 96 00 96 00 00 [fujitsu] 010: 09 be 00 00 00 00 00 00 14 a1 00 00 1f 6d 00 00 [fujitsu] 020: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00 [fujitsu] 030: 00 80 00 00 00 00 00 00 20 00 00 00 00 c0 00 00 [fujitsu] try to write 64 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 64 bytes [sanei_usb] sanei_usb_write_bulk: wanted 64 bytes, wrote 64 bytes [fujitsu] wrote 64 bytes [fujitsu] *** URB going out: [fujitsu] 000: 27 ad 00 00 36 cf 00 00 80 00 00 96 00 96 00 00 [fujitsu] 010: 09 be 00 00 00 00 00 00 14 a1 00 00 1f 6d 00 00 [fujitsu] 020: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00 [fujitsu] 030: 00 80 00 00 00 00 00 00 20 00 00 00 00 00 00 00 [fujitsu] try to write 64 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 64 bytes [sanei_usb] sanei_usb_write_bulk: wanted 64 bytes, wrote 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 [sanei_usb] sanei_usb_write_bulk: trying to write 8 bytes [sanei_usb] sanei_usb_write_bulk: wanted 8 bytes, wrote 8 bytes [fujitsu] wrote 8 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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: 2494 [fujitsu] scan_width: 5281 [fujitsu] scan_height: 8045 [fujitsu] calculateDerivedValues: ok [fujitsu] bytes per line = 1980 [fujitsu] pixels_per_line = 660 [fujitsu] lines = 1005 [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] 010: 00 00 00 1b 00 00 00 02 00 00 80 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] *** URB going out: [fujitsu] 000: 00 [fujitsu] try to write 1 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 1 bytes [sanei_usb] sanei_usb_write_bulk: wanted 1 bytes, wrote 1 bytes [fujitsu] wrote 1 bytes [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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] 010: 00 00 00 03 00 00 00 12 00 00 00 00 00 00 00 [fujitsu] try to write 31 bytes [sanei_usb] sanei_usb_write_bulk: trying to write 31 bytes [sanei_usb] sanei_usb_write_bulk: wanted 31 bytes, wrote 31 bytes [fujitsu] wrote 31 bytes [fujitsu] try to read 18 bytes [sanei_usb] sanei_usb_read_bulk: trying to read 18 bytes [sanei_usb] sanei_usb_read_bulk: wanted 18 bytes, got 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] 010: 00 00 [fujitsu] *** Try to read CSW [sanei_usb] sanei_usb_read_bulk: trying to read 13 bytes [sanei_usb] sanei_usb_read_bulk: wanted 13 bytes, got 13 bytes [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] 010: 00 00 [fujitsu] 5/38/0: Invalid field in parm list [fujitsu] offending byte is 0. (Byte fffffff8 in window descriptor block) [fujitsu] start_scan failed[sanei_wire] sanei_w_reply: wire 4 (old status 0) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ the paramters are: <Option:0> Name: filler Desc: Read-only option that specifies how many options a specific devices supports. Cons: (No Constrain) The value of filler is:True <Option:2> Name: source Desc: Selects the scan source (such as a document-feeder). Cons: (String List)ADF;FB;; The value of source is:ADF <Option:3> Name: mode Desc: Selects the scan mode (e.g., lineart, monochrome, or color). Cons: (String List)Lineart;Halftone;Gray;Color;; The value of mode is:Color <Option:4> Name: duplex Desc: Select if you want the front or back to be scanned, or both. Cons: (String List)front;back;both;; The value of duplex is:both <Option:5> Name: resolution Desc: Sets the horizontal resolution of the scanned image. Cons: (Word List)60;75;100;120;150;160;180;200;240;300;320;400;480;600; The value of resolution is:150 <Option:6> Name: y-resolution Desc: Sets the vertical resolution of the scanned image. Cons: (Word List)60;75;100;120;150;160;180;200;240;300;320;400;480;600; The value of y-resolution is:150 <Option:8> Name: tl-x Desc: Top-left x position of scan area. Cons: Range Constrain -- [0.0,215.89999389648438] quant = 0.0211639404296875 The value of tl-x is:52.80403137207031 <Option:9> Name: tl-y Desc: Top-left y position of scan area. Cons: Range Constrain -- [0.0,711.1999969482422] quant = 0.0211639404296875 The value of tl-y is:0.0 <Option:10> Name: br-x Desc: Bottom-right x position of scan area. Cons: Range Constrain -- [0.0,215.89999389648438] quant = 0.0211639404296875 The value of br-x is:164.5919647216797 <Option:11> Name: br-y Desc: Bottom-right y position of scan area. Cons: Range Constrain -- [0.0,711.1999969482422] quant = 0.0211639404296875 The value of br-y is:170.3062286376953 <Option:12> Name: pagewidth Desc: Usually it's ok to just leave it at the maximum value all the time, but the ADF behavior may change if this value is modified. Cons: Range Constrain -- [0.0,308.0] quant = 0.0211639404296875 The value of pagewidth is:214.9898223876953 <Option:13> Name: pageheight Desc: Usually it's ok to just leave it at the maximum value all the time, but the ADF behavior may change if this value is modified. Cons: Range Constrain -- [0.0,438.0] quant = 0.0211639404296875 The value of pageheight is:296.98948669433594 <Option:19> Name: rif Desc: reverse image format Cons: (No Constrain) The value of rif is:False <Option:20> Name: compression Desc: use hardware compression of scanner Cons: (String List)None;JPG_BASE_LINE;; The value of compression is:None <Option:21> Name: compressionarg Desc: compression quality (JPG) Cons: Range Constrain -- [0,7] quant = 1 The value of compressionarg is:0 <Option:25> Name: emphasis Desc: image emphasis Cons: (String List)None;Low;Medium;High;Smooth;; The value of emphasis is:None <Option:44> Name: dropoutcolor Desc: select dropout color Cons: (String List)Panel;Red;Green;Blue;; The value of dropoutcolor is:Panel <Option:45> Name: startbutton Desc: is the start button of the scanner pressed Cons: (No Constrain) The value of startbutton is:False <Option:49> Name: greenoffset Desc: Use small positive/negative values to correct for miscalibration. Cons: Range Constrain -- [-16,16] quant = 1 The value of greenoffset is:0 <Option:50> Name: swapfile Desc: When set, data for the rear page during a duplex scan is buffered in a temp file rather than in memory. Use this option if you are scanning duplex and are low on memory. Cons: (No Constrain) The value of swapfile is:False <Option:59> Name: sleeptimer Desc: time in minutes until the internal power supply switches to sleep mode Cons: Range Constrain -- [1,254] quant = 1 The value of sleeptimer is:15
_________________________________________________________ Do You Yahoo!? ×¢²áÊÀ½çÒ»Á÷Æ·ÖʵÄÑÅ»¢Ãâ·ÑµçÓÊ http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/