[sane-devel] UMAX Astra 1200S-C SCSI Scanner on Mac 10.2.8

2005-10-14 Thread J.J. Sroka
TOPIC:  UMAX Astra 1200S-C on Mac OS 10.2.8

Scanner:  UMAX Astra 1200S-C, v. 2.9 firmware.

OS:  Macintosh OS 10.2.8

I downloaded the following binary packages from Mattias Ellert's web 
site on October 8.

libusb.pkg v. 0.1.11
sane-backends.pkg v. 1.0.16
TWAIN-SANE-Interface.pkg v. 1.4

I followed these installation instruction's from Ellert's web page:

To use the interface you only have to install the binary package. 
Before installing the TWAIN SANE Interface package you should install 
the sane-backends and the libusb binary packages.


When first running scanimage, the scanner head move a few centimeters 
and then stopped.

scanimage reported:

scanimage: sane_start: Unknown SANE status code -1

I have since to enabled the debug output of the backend by setting the 
environment variable
SANE_DEBUG_UMAX to 12

by calling scanimage this way:

% ( setenv SANE_DEBUG_UMAX 12 ; ./scanimage > ~/test.pnm )

Here's the debug run:

% ( setenv SANE_DEBUG_UMAX 12 ; ./scanimage > ~/test.pnm )
[sanei_debug] Setting debug level of umax to 12.
[umax] sane_init
[umax] This is sane-umax version 1.0 build 44
[umax] compiled with USB support for Astra 2200
[umax] (C) 1997-2002 by Oliver Rauch
[umax] EMAIL: oliver.ra...@rauch-domain.de
[umax] reading configure file umax.conf
[umax] sanei_config_attach_matching_devices(scsi UMAX * Scanner)
[umax] attach_scanner: u4t4l1, connection_type 1
[umax] attach_scanner: opening scsi device u4t4l1
[umax] attach_scanner: sanei_scsi_open_extended returned scsi buffer 
size = 16384
[umax] attach_scanner: allocating SCSI buffer[0]
[umax] init
[umax] request_scsi_maxqueue  = 2
[umax] request_preview_lines  = 10
[umax] request_scan_lines = 40
[umax] handle_bad_sense_error = 0
[umax] execute_request_sense  = 0
[umax] scsi_buffer_size_min   = 32768
[umax] scsi_buffer_size_max   = 131072
[umax] force_preview_bit_rgb  = 0
[umax] slow   = -1
[umax] smear  = -1
[umax] calibration_area   = -1
[umax] calibration_width_offset   = -9
[umax] calibration_width_offset_batch = -9
[umax] calibration_bytespp= -1
[umax] exposure_time_rgb_bind = -1
[umax] invert_shading_data= -1
[umax] lamp_control_available = 0
[umax] backend runs on big endian machine
[umax] variable scsi buffer size (usage of sanei_scsi_open_extended)
[umax] initialize_values
[umax] identify_scanner
[umax] do_inquiry
[umax] Found UMAX  scanner Astra 1200S version V2.9 on device u4t4l1
[umax] umax_correct_inquiry("UMAX  Astra 1200S  V2.9")
[umax] using standard options for Astra 1200S
[umax] get_inquiry_values
[umax] INQUIRY:
[umax] 
[umax]
[umax] vendor: 'UMAX'
[umax] product...: 'Astra 1200S '
[umax] version...: 'V2.9'
[umax] peripheral qualifier..: 0
[umax] peripheral device type: 6
[umax]
[umax] CBHS value range..: 0-255
[umax] scanmode..: flatbed (FB)
[umax] inquiry block length..: 160 bytes
[umax]
[umax] ISO  Version (reserved)...: 0
[umax] ECMA Version (reserved)...: 0
[umax] ANSI Version .: 2
[umax]
[umax] reserved byte 0x05 = 0
[umax] reserved byte 0x06 = 0
[umax]
[umax] scsi features (00):
[umax] ---
[umax]
[umax] f/w support function:
[umax] -
[umax]  - quality calibration
[umax]  - fast preview function
[umax]
[umax] reserved byte 0x36 = 0
[umax] reserved byte 0x37 = 0
[umax]
[umax] scan modes (76):
[umax] 
[umax]  - single pass color mode
[umax]  - lineart mode
[umax]  - gray mode
[umax]  - color mode
[umax]  - transparency (UTA)
[umax]
[umax] scanner capability (be, 00, 00):
[umax] 
[umax]  - send high byte first
[umax]  - bi-level image reverse
[umax]  - multi-level image reverse
[umax]  - paper length can reach to 14 inch
[umax]
[umax] gamma download available
[umax] gamma download type 2
[umax] lines of gamma curve: one line (gray), three lines (color) 
download
[umax] gamma input   8 bits/pixel support
[umax] gamma input  10 bits/pixel support
[umax] gamma output  8 bits/pixel support
[umax] gamma output 10 bits/pixel support
[umax]
[umax] reserved byte 0x65 = 0
[umax] reserved byte 0x67 = 0
[umax]
[umax] reserved byte 0x6b = 0
[umax] reserved byte 0x6c = 0
[umax]
[umax] color sequence: all supported
[umax] color ordering support: pixel
[umax]
[umax] maximum video memory..: 223 KB
[umax]
[umax] reserved byte 0x72 = 0
[umax]
[umax] optical resolution: 600 dpi
[umax] maximum x-resolution..: 600 dpi
[umax] maximum y-resolution..: 1200 dpi
[umax]
[umax] FB (flatbed-mode):
[umax] FB maximum scan width.: 8.50 inch
[umax] FB maximum scan length

[sane-devel] UMAX Astra 1200S-C SCSI Scanner on Mac 10.2.8

2005-10-14 Thread J.J. Sroka
With the linescsi UMAX * Scanner * * * 0

and setenv SANE_DEBUG_UMAX 12

./scanimage finds NO scanners

./sane-find-scanner finds EIGHT scanners.



With the linescsi UMAX * Scanner

and setenv SANE_DEBUG_UMAX 12

./scanimage finds SEVEN scanners

./sane-find-scanner finds EIGHT scanners.


Here's the output before and  after making the change to scsi UMAX * 
Scanner * * * 0:

Last login: Fri Oct 14 08:30:52 on ttyp1
Welcome to Darwin!
  [J-1:~] joe% cd /usr/local/bin
[J-1:/usr/local/bin] joe% setenv SANE_DEBUG_UMAX 12
[J-1:/usr/local/bin] joe% cat /usr/local/etc/sane.d/umax.conf
#
# Options for the umax backend
#

# define scsi queueing depth
#option scsi-maxqueue 2

# define scsi buffer size in bytes
#option scsi-buffer-size-min 65536
#option scsi-buffer-size-max 262144

# define scan lines that shall be read in one block
#option scan-lines 100
#option preview-lines 20

# define how to handle bad sense codes
#   0 = handle as device busy
#   1 = handle as ok
#   2 = handle as i/o error
#   3 = ignore bad error code - continue sense handler,
#option handle-bad-sense-error 0

# define if a request sense command shall be executed
#option execute-request-sense 0

# define if the preview bit shall be set when scanning in rgb mode
#option force-preview-bit-rgb 0

# define if slow speed flag shall be set
# BE CAREFUL WITH THIS OPTION, IT MAY DESTROY YOUR SCANNER WHEN SET 
FALSE
# -1 = automatically set by driver - if known
#  0 = disabled
#  1 = enabled
#option slow-speed 0

# define if care-about-smeraring flag shall be set
# BE CAREFUL WITH THIS OPTION, IT MAY DESTROY YOUR SCANNER WHEN SET 
FALSE
# -1 = automatically set by driver - if known
#  0 = disabled
#  1 = enabled
#option care-about-smearing 0

# define if the calibration shall be done for selected scanarea or for 
each ccd pixel
# -1 = automatically set by driver - if known
#  0 = disabled
#  1 = enabled
#option calibration-full-ccd 1

# define if an offset of the calculate calibration with has to be used
# -9 = auto
#option calibration-width-offset -9

# define the number of pixels that is used for calibration
# -1 = disabled
#  0 = not set
#  1 = 1 byte/pixel,
#  2 = 2 bytes/pixel
#option calibration-bytes-pixel -1

# define if scanner uses the same exposure times for red, green and blue
# -1 = automatically set by driver - if known
#  0 = disabled (own selection for red, green and blue)
#  1 = enabled (same values for red, green and blue)
#options exposure-time-rgb-bind 0

# define if shading data shall be inverted befor sending it back to the 
scanner
# -1 = automatically set by driver - if known
#  0 = disabled
#  1 = enabled
#option invert-shading-data 0

# define if the scanner supports lamp control commands
# 0 = automatically set by driver - if known
# 1 = enabled
#option lamp-control-available 0

# define how 16 bit gamma data is padded
# -1 = automatically set by driver - if known
#  0 = gamma data is msb padded
#  1 = gamma data is lsb padded
#option gamma-lsb-padded 0

# define connection type of following devices
# 1 = scsi
# 2 = usb
#option connection-type 1

# linux device identification:
#scsi vendor model type bus channel id lun
scsi UMAX * Scanner
scsi LinoHell JADE
scsi LinoHell Office
scsi LinoHell Office2
scsi LinoHell SAPHIR2
scsi LinoHell SAPHIR3
scsi Linotype SAPHIR4
scsi LinoHell OPAL2
scsi HDM LS4H1S
scsi Nikon AX-110
scsi Nikon AX-210
scsi KYE ColorPage-HR5
scsi EPSON Perfection600
scsi ESCORT "Galleria 600S"
scsi TriGem PowerScanII

# Umax Astra 2200 via USB:
# usb vendor product
usb 0x1606 0x0230

# scsi device list
option connection-type 1
/dev/scanner

# usb device list
option connection-type 2
/dev/usbscanner

[J-1:/usr/local/bin] joe% ./scanimage -L
[sanei_debug] Setting debug level of umax to 12.
[umax] sane_init
[umax] This is sane-umax version 1.0 build 44
[umax] compiled with USB support for Astra 2200
[umax] (C) 1997-2002 by Oliver Rauch
[umax] EMAIL: oliver.ra...@rauch-domain.de
[umax] reading configure file umax.conf
[umax] sanei_config_attach_matching_devices(scsi UMAX * Scanner)
[umax] attach_scanner: u4t4l1, connection_type 1
[umax] attach_scanner: opening scsi device u4t4l1
[umax] attach_scanner: sanei_scsi_open_extended returned scsi buffer 
size = 16384
[umax] attach_scanner: allocating SCSI buffer[0]
[umax] init
[umax] request_scsi_maxqueue  = 2
[umax] request_preview_lines  = 10
[umax] request_scan_lines = 40
[umax] handle_bad_sense_error = 0
[umax] execute_request_sense  = 0
[umax] scsi_buffer_size_min   = 32768
[umax] scsi_buffer_size_max   = 131072
[umax] force_preview_bit_rgb  = 0
[umax] slow   = -1
[umax] smear  = -1
[umax] calibration_area   = -1
[umax] calibration_width_offset   = -9
[umax] calibration_width_offset_batch = -9
[umax] calibration_bytespp= -1
[umax] exposure_time_rgb_bind = -1
[umax] invert_sh

[sane-devel] UMAX Astra 1200S-C SCSI Scanner on Mac 10.2.8

2005-10-16 Thread J.J. Sroka
This Terminal Session first runs

scanimage -Land   sane-find-scanner

with umax.conf   having the linescsi UMAX * Scanner * * * 0

and everything in  dll.confcommented out except for 
umax.



The second run is with
umax.conf   having the linescsi UMAX * Scanner
anddll.conf  the same as in the first (above) run.

The results are as before.

***  Terminal Session  ***
Last login: Sun Oct 16 11:00:34 on console
Welcome to Darwin!
  This is the .tcshrc file speaking...
Hello, Boobie!
  This is the .cshrc file speaking...
 I'm new here, Bubba!
  This is the .login file speaking...
What can I do for you?
[J-1:~] joe% cd /usr/local/bin
[J-1:/usr/local/bin] joe% setenv SANE_DEBUG_UMAX 12
[J-1:/usr/local/bin] joe% cat /usr/local/etc/sane.d/umax.conf
#
# Options for the umax backend
#

# define scsi queueing depth
#option scsi-maxqueue 2

# define scsi buffer size in bytes
#option scsi-buffer-size-min 65536
#option scsi-buffer-size-max 262144

# define scan lines that shall be read in one block
#option scan-lines 100
#option preview-lines 20

# define how to handle bad sense codes
#   0 = handle as device busy
#   1 = handle as ok
#   2 = handle as i/o error
#   3 = ignore bad error code - continue sense handler,
#option handle-bad-sense-error 0

# define if a request sense command shall be executed
#option execute-request-sense 0

# define if the preview bit shall be set when scanning in rgb mode
#option force-preview-bit-rgb 0

# define if slow speed flag shall be set
# BE CAREFUL WITH THIS OPTION, IT MAY DESTROY YOUR SCANNER WHEN SET 
FALSE
# -1 = automatically set by driver - if known
#  0 = disabled
#  1 = enabled
#option slow-speed 0

# define if care-about-smeraring flag shall be set
# BE CAREFUL WITH THIS OPTION, IT MAY DESTROY YOUR SCANNER WHEN SET 
FALSE
# -1 = automatically set by driver - if known
#  0 = disabled
#  1 = enabled
#option care-about-smearing 0

# define if the calibration shall be done for selected scanarea or for 
each ccd pixel
# -1 = automatically set by driver - if known
#  0 = disabled
#  1 = enabled
#option calibration-full-ccd 1

# define if an offset of the calculate calibration with has to be used
# -9 = auto
#option calibration-width-offset -9

# define the number of pixels that is used for calibration
# -1 = disabled
#  0 = not set
#  1 = 1 byte/pixel,
#  2 = 2 bytes/pixel
#option calibration-bytes-pixel -1

# define if scanner uses the same exposure times for red, green and blue
# -1 = automatically set by driver - if known
#  0 = disabled (own selection for red, green and blue)
#  1 = enabled (same values for red, green and blue)
#options exposure-time-rgb-bind 0

# define if shading data shall be inverted befor sending it back to the 
scanner
# -1 = automatically set by driver - if known
#  0 = disabled
#  1 = enabled
#option invert-shading-data 0

# define if the scanner supports lamp control commands
# 0 = automatically set by driver - if known
# 1 = enabled
#option lamp-control-available 0

# define how 16 bit gamma data is padded
# -1 = automatically set by driver - if known
#  0 = gamma data is msb padded
#  1 = gamma data is lsb padded
#option gamma-lsb-padded 0

# define connection type of following devices
# 1 = scsi
# 2 = usb
#option connection-type 1

# linux device identification:
#scsi vendor model type bus channel id lun
scsi UMAX * Scanner * * * 0
scsi LinoHell JADE
scsi LinoHell Office
scsi LinoHell Office2
scsi LinoHell SAPHIR2
scsi LinoHell SAPHIR3
scsi Linotype SAPHIR4
scsi LinoHell OPAL2
scsi HDM LS4H1S
scsi Nikon AX-110
scsi Nikon AX-210
scsi KYE ColorPage-HR5
scsi EPSON Perfection600
scsi ESCORT "Galleria 600S"
scsi TriGem PowerScanII

# Umax Astra 2200 via USB:
# usb vendor product
usb 0x1606 0x0230

# scsi device list
option connection-type 1
/dev/scanner

# usb device list
option connection-type 2
/dev/usbscanner

[J-1:/usr/local/bin] joe% cat /usr/local/etc/sane.d/dll.conf
# enable the next line if you want to allow access through the network:
#net
#abaton
#agfafocus
#apple
#avision
#artec
#artec_eplus48u
#as6e
#bh
#canon
#canon630u
#canon_pp
#coolscan
#coolscan2
#dc25
#dc210
#dc240
#dmc
#epson
#fujitsu
#gphoto2
#genesys
#gt68xx
#hp
#hpsj5s
#hp4200
#hp5400
#ibm
#leo
#ma1509
#matsushita
#microtek
#microtek2
#mustek
#mustek_pp
#mustek_usb
#mustek_usb2
#nec
#niash
#pie
#pint
#plustek
#plustek_pp
#pnm
#qcam
#ricoh
#s9036
#sceptre
#sharp
#sm3600
#sm3840
#snapscan
#sp15c
#st400
#tamarack
#teco1
#teco2
#teco3
#test
#u12
umax
#umax_pp
#umax1220u
#v4l
#
# The following backends are not included in the sane-backends 
distribution
# If you want to use them, download them from their webpages and read 
their
# documentation
#
# HP OfficeJet backend homepage: http://hpoj.sf.net/
# Uncomment the following line if hpoj is installed:
#