[sane-devel] Umax Astra 2400S w/ AEC-6712D hanging
Oliver Rauch
Oliver.Rauch at Rauch-Domain.DE
Thu Feb 26 21:55:48 GMT 2004
On Thursday 26 February 2004 22:07, abel deuring wrote:
>
> are you sure that these are the only SCSI command used by the backend? I
> don't claim that I've read the entire source code of the umax backend,
> but the function umax_send_gamma_data mem-copies gamma_DCF[012].cmd into
> the buffer passed to umax_scsi_cmd. This means that the first byte of
> gamma_DCF[012].cmd is sent to the scanner as a SCSI command code. Ad
> these bytes have the value 0 or 0x21, don't they?
>
> DN's debug output supports my suspicion: The last debug message is
> "[umax] using gamma download curve format type 2", which is also the
> last message before the call to umax_scsi_cmd for the gamma download.
No, the scsi command in the block is send.cmd (0x2a), the DCF?.cmd is not
an scsi command, it is the beginning of the data structure that is sent
with the send command:
memcpy(dev->buffer[0], send.cmd, send.size);
set_S_datatype_code(dev->buffer[0], S_datatype_gamma);
dest = dev->buffer[0] + send.size;
if (dev->inquiry_gamma_DCF == 0)
{
DBG(DBG_info, "using gamma download curve format type 0\n");
memcpy(dest, gamma_DCF0.cmd, gamma_DCF0.size);
...
Bye
Oliver
--
http://www.xsane.org
http://www.rauch-domain.de
http://www.sane-project.org
More information about the sane-devel
mailing list