[sane-devel] Umax Astra 2400S w/ AEC-6712D hanging

Oliver Rauch Oliver.Rauch@Rauch-Domain.DE
Thu, 26 Feb 2004 22:55:48 +0100


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 int=
o
> 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);                           =
                           =20
  set_S_datatype_code(dev->buffer[0], S_datatype_gamma);                 =
                            =20
  dest =3D dev->buffer[0] + send.size;
  if (dev->inquiry_gamma_DCF =3D=3D 0)                                   =
                =20
  {
    DBG(DBG_info, "using gamma download curve format type 0\n");
    memcpy(dest, gamma_DCF0.cmd, gamma_DCF0.size);
=2E..

Bye
Oliver



--=20
http://www.xsane.org
http://www.rauch-domain.de
http://www.sane-project.org