SnapScan 1236s troubles

From: Oleg Baranov (obaranov@yahoo.com)
Date: Fri Aug 04 2000 - 10:20:41 PDT

  • Next message: Stephen Williams: "Re: quick note from the TWAIN/SANE meeting at OLS"

    There are some troubles with Agfa SnapScan 1236s.

    I use it with aha-1505 (the card scanner shipped with)
    controller seems to initialise an work ok:

    -------------
    aha152x: resetting bus...
    aha152x0: vital data: rev=3, io=0x140 (0x140/0x140), irq=11, scsiid=7,
    reconnect=enabled, parity=enabled, synchronous=enabled, delay=100,
    extended translation=enabled
    aha152x0: trying software interrupt, ok.
    scsi0 : Adaptec 152x SCSI driver; $Revision: 2.0 $
    scsi : 1 host.
    (scsi0:2:0) Synchronous Data Transfer Request was rejected
      Vendor: AGFA Model: SNAPSCAN 1236 Rev: 1.50
      Type: Scanner ANSI SCSI revision: 02
    Detected scsi generic sg0 at scsi0, channel 0, id 2, lun 0, type 6
    scsi : detected total.
    ------------

    then I try out scanner list and it seems to all right too:

    ------------
    [oleg@WS oleg]$ scanimage -L
    [sanei_init_debug]: Setting debug level of snapscan to 128.
    [snapscan] sane_snapscan_init
    [sanei_init_debug]: Setting debug level of sanei_scsi to 128.
    [sanei_scsi] searched device is /dev/sga
    [snapscan] add_device(/dev/sga)
    [sanei_init_debug]: Setting debug level of sanei_scsi to 128.
    [sanei_scsi] sanei_scsi_open: sanei_scsi_max_request_size=32768 bytes
    [sanei_scsi] sanei_scsi_open: SG driver version: 30115
    [sanei_scsi] sanei_scsi_open_extended: using 262144 bytes as SCSI buffer

    [sanei_scsi] trying to enable low level command queueing
    [sanei_scsi] sanei_scsi_open: Host adapter queue depth: 1
    [sanei_scsi] sanei_scsi_open: SG driver can change buffer size at run
    time
    [snapscan] mini_inquiry
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_req_wait: read 72 bytes
    [snapscan] add_device: Is vendor "AGFA" model "SNAPSCAN 1236" a
    supported scanner?
    [snapscan] sane_snapscan_get_devices (0xbffff604, 0)
    device `snapscan:/dev/sga' is a AGFA SNAPSCAN 1236 flatbed scanner
    ------------

    but the next step allways fails:

    ------------
    [oleg@WS oleg]$ scanimage -d snapscan:/dev/sga -h
    Usage: scanimage [OPTION]...

    Start image acquisition on a scanner device and write PNM image data to
    standard output.

    -b, --batch=FORMAT working in batch mode
    -d, --device-name=DEVICE use a given scanner device
    -h, --help display this help message and exit
    -L, --list-devices show available scanner devices
    -T, --test test backend thoroughly
    -v, --verbose give even more status messages
    -V, --version print version information
    [sanei_init_debug]: Setting debug level of snapscan to 128.
    [snapscan] sane_snapscan_init
    [sanei_init_debug]: Setting debug level of sanei_scsi to 128.
    [sanei_scsi] searched device is /dev/sga
    [snapscan] add_device(/dev/sga)
    [sanei_init_debug]: Setting debug level of sanei_scsi to 128.
    [sanei_scsi] sanei_scsi_open: sanei_scsi_max_request_size=32768 bytes
    [sanei_scsi] sanei_scsi_open: SG driver version: 30115
    [sanei_scsi] sanei_scsi_open_extended: using 262144 bytes as SCSI buffer

    [sanei_scsi] trying to enable low level command queueing
    [sanei_scsi] sanei_scsi_open: Host adapter queue depth: 1
    [sanei_scsi] sanei_scsi_open: SG driver can change buffer size at run
    time
    [snapscan] mini_inquiry
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_req_wait: read 72 bytes
    [snapscan] add_device: Is vendor "AGFA" model "SNAPSCAN 1236" a
    supported scanner?[snapscan] sane_snapscan_open (/dev/sga, 0xbffff5d0)
    [snapscan] find_device
    [snapscan] sane_snapscan_open: allocated scanner structure at 0x804dc08
    [snapscan] open_scanner
    [sanei_init_debug]: Setting debug level of sanei_scsi to 128.
    [sanei_scsi] sanei_scsi_open: SG driver version: 30115[snapscan]
    wait_scanner_ready
    [snapscan] test_unit_ready
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [snapscan] request_sense
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_req_wait: read 56 bytes
    [snapscan] sense_handler(5, 0xbffff408, 0x804dc08)
    [snapscan] sense_handler: sense key is invalid.
    [snapscan] sane_snapscan_open: performing scanner self test.
    [snapscan] send_diagnostic
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_open_extended: using 262144 bytes as SCSI buffer

    [sanei_scsi] trying to enable low level command queueing
    [sanei_scsi] sanei_scsi_open: Host adapter queue depth: 1
    [sanei_scsi] sanei_scsi_open: SG driver ca[snapscan] wait_scanner_ready
    [snapscan] test_unit_ready
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [snapscan] request_sense
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_req_wait: read 56 bytes
    [snapscan] sense_handler(5, 0xbffff408, 0x804dc08)
    [snapscan] sense_handler: sense key is invalid.
    [snapscan] sane_snapscan_open: performing scanner self test.
    [snapscan] send_diagnostic
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008 n change buffer size at
    run time
    [snapscan] sane_snapscan_open: waiting for scanner to warm up.
    [snapscan] wait_scanner_ready
    [snapscan] test_unit_ready
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [snapscan] request_sense
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] sanei_scsi_req_wait: read 56 bytes
    [snapscan] sense_handler(5, 0xbffff408, 0x804dc08)
    [snapscan] sense_handler: sense key is invalid.
    [snapscan] sane_snapscan_open: performing scanner self test.
    [snapscan] send_diagnostic
    [sanei_scsi] scsi_req_enter: entered 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
    [sanei_scsi] sanei_scsi.issue: 0x4017d008
    -------------
    and that's all. after this program "hangs" (it can be interrupted by
    ctrl-C, but it doesn't reply anything)
    the same configuration works under MustDie'95 fine....
    so what's wrong?

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



    This archive was generated by hypermail 2b29 : Fri Aug 04 2000 - 10:30:54 PDT