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

Oliver Rauch Oliver.Rauch@Rauch-Domain.DE
Thu, 26 Feb 2004 18:46:14 +0100


> Now, after a quick glimpse into the sources of the Umax backend I think
> that the backend uses the SCSI command codes 0 and 0x21 to upload gamma
> tables to the scanner (Oliver, can you confirm this?), but the atp870u
> driver will never send this data to the scanner. (there may be more
> non-SCSI-standard commands that send data to the scanner -- I'm too laz=
y
> to search for them...)

The used commands are:


#define TEST_UNIT_READY         0x00
#define REQUEST_SENSE           0x03
#define INQUIRY                 0x12
#define RESERVE_UNIT            0x16
#define RELEASE_UNIT            0x17
#define SCAN                    0x1B
#define SET_WINDOW              0x24
#define READ                    0x28
#define SEND                    0x2A
#define OBJECT_POSITION         0x31
#define GET_DATA_BUFFER_STATUS  0x34
#define WRITE_BUFFER            0x3B
#define GET_LAMP_STATUS         0x5E
#define SET_LAMP_STATUS         0x5F

GET_DATA_BUFFER_STATUS  0x34 is usaually not used
0x21 is not used

TEST_UNIT_READY is used very often.
When this command is not sent then the backend
will call this command several times and
return with an error afterwards.

All other commands also can be sent

Oliver



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