[dev] Problems with epson USB (mis)detection

From: Henning Meier-Geinitz (hmg-ml@gmx.de)
Date: Sat Apr 14 2001 - 07:58:15 PDT

  • Next message: Klaus-Peter Schrage: "Re: [snapscan] new version snapscan-20010411 of the backend - success with Agfa 1212U_2"

    Hi,

    I'm doing some work on lm9831 based scanners (Mustek BearPaw in this
    case) and just found out that the epson backend freezes when my Mustek
    BearPaw 1200 scanner is plugged in. Example:

    SANE_DEBUG_EPSON=255 scanimage -L
    [epson] sane_init: sane-backends 1.0.4
    [epson] sane_init, ># epson.conf<
    [epson] sane_init, >#<
    [epson] sane_init, ># here are some examples for how to configure the EPSON backend<
    [epson] sane_init, >#<
    [epson] sane_init, ># SCSI scanner:<
    [epson] sane_init, >scsi EPSON<
    [epson] sane_init, >scsi EPSON<
    [epson] sane_init, >#<
    [epson] sane_init, ># Parallel port scanner:<
    [epson] sane_init, >#pio 0x278<
    [epson] sane_init, >#pio 0x378<
    [epson] sane_init, >#pio 0x3BC<
    [epson] sane_init, >#<
    [epson] sane_init, ># USB scanner<
    [epson] sane_init, ># /dev/usb/scanner0<
    [epson] sane_init, >usb /dev/usbscanner0<
    [epson] sane_init, >usb /dev/usbscanner0<
    [epson] attach(usb /dev/usbscanner0)
    [epson] SANE Epson Backend v0.2.02 - 2001-03-31
    [epson] attach(usb /dev/usbscanner0)
    [epson] attach: opening usb /dev/usbscanner0
    [epson] send buf, size = 2
    [epson] buf[0] 1b .
    [epson] buf[1] 40 @

    Here it freezes.
    If I turn off and on the scanner:

    [epson] receive buf, expected = 1, got = 0
    [epson] get_identity_information()
    [epson] send buf, size = 2
    [epson] buf[0] 1b .
    [epson] buf[1] 49 I
    [epson] error in receive - status = 5
    [epson] receive buf, expected = 4, got = -1
    [epson] ident failed
    [epson] sane_get_devices()

    The freeze shouldn't happen. If it's not possible to detect the Epson
    USB scanners without confusing other scanners, please don't do it
    automatically (so the user has to put the /dev/usbscanner in
    epson.conf or something like this).

    Bye,
      Henning

    --
    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 : Sat Apr 14 2001 - 07:43:01 PDT