[sane-devel] Sane, Microtek ScanMaker II and Mac OS X SCSI

David B Brown david_b_brown at mac.com
Fri Feb 27 16:58:55 GMT 2004


Mattias,


	thanks for the quick response. I downloaded the sources from your  
website,  did the patch you suggested, but still not joy. So I added a  
little extra to a  DEBUG statement to be sure as follows ,

	DBG (5, "David Executing command. MAX_DATA = (0x%08x), %d\n",  
MAX_DATA, MAX_DATA);

  and sure enough this show that the patch has been applied and MAX_DATA  
is set to 128*1024.

	Here's the Debug trace I get :-

  dave% /usr/local/bin/scanimage -x 25.6 -y 25.6 > img.pnm

.......

[microtek] .mode_select 0...
[microtek] .mode_select:  pap_len: 4199
[sanei_scsi] cmd2: cmd_size:6 src_size:10 dst_size:0 isWrite:1
[sanei_scsi] isWrite src_size:10
[sanei_scsi] David Executing command. MAX_DATA = (0x00020000), 131072
[sanei_scsi] ExecuteTaskSync OK Trasferred 10 bytes
[microtek] .wait_ready 0...
[sanei_scsi] cmd2: cmd_size:6 src_size:0 dst_size:0 isWrite:1
[sanei_scsi] isWrite src_size:0
[sanei_scsi] David Executing command. MAX_DATA = (0x00020000), 131072
[sanei_scsi] ExecuteTaskSync OK Trasferred 0 bytes
[microtek] .start_scan...
[sanei_scsi] cmd2: cmd_size:6 src_size:0 dst_size:0 isWrite:1
[sanei_scsi] isWrite src_size:0
[sanei_scsi] David Executing command. MAX_DATA = (0x00020000), 131072
[sanei_scsi] ExecuteTaskSync OK Trasferred 0 bytes
[microtek] .get_scan_status 0...
[sanei_scsi] cmd2: cmd_size:6 src_size:0 dst_size:6 isWrite:0
[sanei_scsi] isRead dst_size:6
[sanei_scsi] David Executing command. MAX_DATA = (0x00020000), 131072
[sanei_scsi] ExecuteTaskSync OK Trasferred 0 bytes
[microtek] get_scan_status(0): 0, 0, 0  -> #0
[microtek] >  0  0  0  0  0  0
[microtek] sane_start:  SCSI buffer smaller that one scan line!
[microtek] end_scan...
[microtek] .stop_scan...
[sanei_scsi] cmd2: cmd_size:6 src_size:0 dst_size:0 isWrite:1
[sanei_scsi] isWrite src_size:0
[sanei_scsi] David Executing command. MAX_DATA = (0x00020000), 131072
[sanei_scsi] ExecuteTaskSync OK Trasferred 0 bytes
scanimage: sane_start: Out of memory
[microtek] sane_cancel...
[microtek] end_scan...
[microtek] sane_close...
[microtek] sane_exit...
[microtek] sane_exit:  MICROTEK says goodbye.
[MacCoylton:sane-backends-2004-02-15-cvs-macosx/src/sane-backends-2004 
-02-15-cvs] dave%

Cheers

David

On 27 Feb 2004, at 11:03, Mattias Ellert wrote:

> David B Brown wrote:
>> [microtek] get_scan_status(0): 0, 0, 0  -> #0
>> [microtek] >  0  0  0  0  0  0
>> [microtek] sane_start:  SCSI buffer smaller that one scan line!
>> [microtek] end_scan...
>
> Patch is available at http://www.ellert.se/twain-sane/patches.html
>
> 	Mattias
>
> -- 
> _______________________________________________________________________ 
> _
>
> mattias.ellert at tsl.uu.se                           tel: +46 18 471 32  
> 58
> http://www.tsl.uu.se/~ellert/                      fax: +46 18 471 35  
> 13
> _______________________________________________________________________ 
> _
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2953 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20040227/552e3da5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20040227/552e3da5/attachment.sig>


More information about the sane-devel mailing list