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

David B Brown david_b_brown@mac.com
Fri, 27 Feb 2004 16:58:55 +0000


--Apple-Mail-2-809687972
Content-Type: multipart/alternative; boundary=Apple-Mail-1-809687964


--Apple-Mail-1-809687964
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

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@tsl.uu.se                           tel: +46 18 471 32  
> 58
> http://www.tsl.uu.se/~ellert/                      fax: +46 18 471 35  
> 13
> _______________________________________________________________________ 
> _
>

--Apple-Mail-1-809687964
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

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

<color><param>FFFF,0000,0000</param>[sanei_scsi] David Executing
command. MAX_DATA = (0x00020000), 131072</color>

[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:


<excerpt>David B Brown wrote:

<excerpt>[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...

</excerpt>

Patch is available at http://www.ellert.se/twain-sane/patches.html


	Mattias


-- 

________________________________________________________________________


mattias.ellert@tsl.uu.se                           tel: +46 18 471 32
58

http://www.tsl.uu.se/~ellert/                      fax: +46 18 471 35
13

________________________________________________________________________


</excerpt>
--Apple-Mail-1-809687964--

--Apple-Mail-2-809687972
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAP3dQ+6rGH1tFACgRAhhKAJ0bue7x2ZikKUlMzxWxPP3QX/aC3wCfXYCq
VPBBwMvCu9cziKJUH6shbWw=
=Tei2
-----END PGP SIGNATURE-----

--Apple-Mail-2-809687972--