# Re: Epson 1200S: "[epson] ident failed"

From: Dave Hill (dave@minnie.demon.co.uk)
Date: Tue Jan 25 2000 - 10:27:50 PST

- Next message: Dave Hill: "Re: Epson 1200S: "[epson] ident failed""
  - Previous message: T. Tilton: "Relysis NB9624"
  - In reply to: Karl Heinz Kremer: "Re: Epson 1200S: "[epson] ident failed""
  - Next in thread: Dave Hill: "Re: Epson 1200S: "[epson] ident failed""
  - Reply: Dave Hill: "Re: Epson 1200S: "[epson] ident failed""
  - Reply: John Vickers: "Re: Epson 1200S: "[epson] ident failed""
  - Reply: Karl Heinz Kremer: "Re: Epson 1200S: "[epson] ident failed""
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  Karl Heinz Kremer wrote:
  >
  > On Mon, Jan 24, 2000 at 09:43:39AM +0000, John Vickers wrote:
  > > If I then do:
  > > /usr/local/bin/scanimage -v --device epson:/dev/scanner -T
  > > that also PASSes (scanner whirrs, etc), but only the first time I try it.
  >
  > ... that's a known problem. You can only do this once and then you have to
  > reset the scanner. I don't have an idea yet why, but this is on my list
  > of things to work out. It's no real problem, because it only happens
  > when you use the -T switch, the "normal" scanning works just fine (at
  > least for me).
  >

  There are two problems here.

  One is that scanimage -T somehow leaves the scanner in a state
  that it will not respond to the "inquiry" command. I noticed
  this with my GT7000 but everything else worked OK.

  The second problem is the "segmentation fault". You will find
  that this will also happen if your scanner fails to identify
  itself for any reason (including being powered off 8-)).

  The fix for this is as follows. Sorry I haven't downloaded the
  latest snapshot yet, but the attached diff is how I fixed
  Christian's 0.1.3 version.

  The reason for moving the lines is that if the dev_name is
  filled in, the sane main code assumes that the driver init'ed
  OK and all fields are valid. By deferring filling in the name
  until the end, that is the case!!

  Dave Hill

      --
      Dave Hill, Kempston, Bedford UK		dave@minnie.demon.co.uk
      Sicth munce ago, I cutn't evun spel enjuneer, and now I are one!

  --- epson-0.1.3/epson.c Sat Oct 2 09:54:13 1999 +++ epson.c Tue Jan 25 18:23:09 2000 @@ -810,9 +810,6 @@ DBG (3, "attach: opening %s\n", dev_name); - str = malloc( strlen( dev_name) + 1); - dummy_dev.sane.name = strcpy( str, dev_name); - s->hw->last_res = s->hw->last_res_preview = 0; /* @@ -1181,6 +1178,9 @@ // */ + str = malloc( strlen( dev_name) + 1); + dummy_dev.sane.name = strcpy( str, dev_name); + myclose( s); return SANE_STATUS_GOOD;

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

  - Next message: Dave Hill: "Re: Epson 1200S: "[epson] ident failed""
  - Previous message: T. Tilton: "Relysis NB9624"
  - In reply to: Karl Heinz Kremer: "Re: Epson 1200S: "[epson] ident failed""
  - Next in thread: Dave Hill: "Re: Epson 1200S: "[epson] ident failed""
  - Reply: Dave Hill: "Re: Epson 1200S: "[epson] ident failed""
  - Reply: John Vickers: "Re: Epson 1200S: "[epson] ident failed""
  - Reply: Karl Heinz Kremer: "Re: Epson 1200S: "[epson] ident failed""
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Tue Jan 25 2000 - 10:36:56 PST