non-Linux & Mustek ScanExpress

Dr. Andreas Bolsch (a.bolsch@ic.ac.uk)
Sat, 21 Mar 1998 19:01:58 +0100

This is a multi-part message in MIME format.
--------------6C116EAF2ADC05C9C2FD0164
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Does anybody have experience with a Mustek ScanExpress on a non-Linux
system? On my Linux box the ScanExpress 12000SP is connected via
the DTCT436 card shipped with scanner. The scanner is detected and
reacts (to some extent) to the SCSI commands.

After twiddling around with the backend (sane-0.70) I am now convinced
that the command set (Thanks, David!) of the scanner itself is not the
real problem.

There seems to be a flaw in the SCSI driver on either side because
after mode_select a get_image_status just echoes the parameters of
the previous mode_select. I tried several weird numbers as parameters
for mode_select, always the same effect. Without a request_sense
between the commands it becomes even worse. Probably a timing or
handshake problem. Used kernel 2.0.32 and mustek patch.

Debug output:
--------------6C116EAF2ADC05C9C2FD0164
Content-Type: text/plain; charset=us-ascii; name="debug"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="debug"

[sanei_init_debug]: Setting debug level of mustek to 128.
[mustek] attach: opening /dev/scanner as scsi device
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
[mustek] attach: sending INQUIRY
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
12 00 00 00 60 00

bytes read:
06 00 01 01 5B 01 00 00 53 43 41 4E 4E 45 52 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 2E 30 31 4D 55 53 54 45 4B 20 20 20 43 30 36 20 53 31 32 49 44 57 4D 31 32 33 37 31 37 01 00 01 03 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF

[sanei_scsi] sanei_scsi_req_wait: read 132 bytes
[mustek] scsi_wait_ready: sending TEST_UNIT_READY
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
00 00 00 00 00 00

bytes read:

[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
[mustek] scsi_wait_ready: unit signaled READY
[mustek] attach: firmware revision 1.01
[mustek] attach: scanner has automatic line-distance correction
[mustek] attach: found Mustek scanner model C06 S12IDW (flatbed scanner), 1-pass
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
[mustek] scsi_wait_ready: sending TEST_UNIT_READY
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
00 00 00 00 00 00

bytes read:

[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
[mustek] scsi_wait_ready: unit signaled READY
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
04 00 00 00 12 00 08 00 00 00 00 74 12 74 12 88 00 00 00 00 74 12 74 12

bytes read:

[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
03 00 00 00 04 00

bytes read:
00 00 00 00

[sanei_scsi] sanei_scsi_req_wait: read 40 bytes
[mustek] request_sense: got error code 00
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
15 00 00 00 0D 00 8B 00 00 00 05 72 00 00 00 00 00 1E 00

bytes read:

[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
03 00 00 00 04 00

bytes read:
00 00 00 00

[sanei_scsi] sanei_scsi_req_wait: read 40 bytes
[mustek] request_sense: got error code 00
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
03 00 00 00 04 00

bytes read:
00 00 00 00

[sanei_scsi] sanei_scsi_req_wait: read 40 bytes
[mustek] request_sense: got error code 00
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
1B 00 00 00 41 00

bytes read:

[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
03 00 00 00 04 00

bytes read:
00 00 00 00

[sanei_scsi] sanei_scsi_req_wait: read 40 bytes
[mustek] request_sense: got error code 00
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
03 00 00 00 04 00

bytes read:
00 00 00 00

[sanei_scsi] sanei_scsi_req_wait: read 40 bytes
[mustek] request_sense: got error code 00
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
11 00 00 00 05 00

bytes read:
00 00 00 00 05

[sanei_scsi] sanei_scsi_req_wait: read 41 bytes
[mustek] line_distance: got factor=0, (r/g/b)=(0/0/5)
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
03 00 00 00 04 00

bytes read:
00 00 00 00

[sanei_scsi] sanei_scsi_req_wait: read 40 bytes
[mustek] request_sense: got error code 00
[sanei_scsi] scsi_req_enter: entered 0x805a210
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x805a210
[sanei_scsi] sanei_scsi.issue: 0x805a210
bytes written:
0F 00 00 00 06 00

bytes read:
00 00 00 00 05 72

[sanei_scsi] sanei_scsi_req_wait: read 42 bytes
[mustek] get_image_status: bytes_per_line=0, lines=7472384
./scan: line 5: 5128 Floating point exceptionfrontend/scanimage -v -d mustek:/dev/scanner -x 100 -y 100 --res 30 --mode Gray

--------------6C116EAF2ADC05C9C2FD0164--

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com