9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] scanner support
@ 2001-07-22 19:45 anothy
  0 siblings, 0 replies; 8+ messages in thread
From: anothy @ 2001-07-22 19:45 UTC (permalink / raw)
  To: 9fans

anyone done anything for scanners under Plan 9? i've got an
HP ScanJet 4c (SCSI, color) i'd like to get working. even scuzz
would be fine. anyone got any info on how i'd make scuzz do
that, or what codes SCSI scanners want (i tried scuzz' read
just for kicks, but no luck)?
-α.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] scanner support
@ 2001-07-26  2:58 David Gordon Hogan
  0 siblings, 0 replies; 8+ messages in thread
From: David Gordon Hogan @ 2001-07-26  2:58 UTC (permalink / raw)
  To: 9fans

> > 'From' memory, the SCSI-2 standard (somewhat stupidly) only specifies
> > how to get data from scanners, and says nothing about the format of
> > the data itself.
>
> That's not particularly stupid -- 9P specifies how to get data but
> not the format of the data itself.

The data in this case is a grid of pixel data.  Now it is true that
the resolution can change, and the number of bits per pixel can change,
but all these things can be handled in a uniform way (c.f. the Plan 9
3rd edition graphics model).


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] scanner support
@ 2001-07-23 19:58 Richard Miller
  0 siblings, 0 replies; 8+ messages in thread
From: Richard Miller @ 2001-07-23 19:58 UTC (permalink / raw)
  To: 9fans

> anyone know of any other scanner software that works by
> sending scsi commands (rather than through a specialized driver)
> that might be worth trying?

Some years ago I wrote a SCSI scanner driver for a Microtek scanner on
SunOS.  I'll dig out a copy and mail it to you for general interest.
It will almost certainly be of no practical use, because as David
Hogan has observed, every scanner does things differently - not just
in the format of scanned data received but in the repertoire of
commands for controlling density, contrast, area to be scanned, etc.

-- Richard



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] scanner support
  2001-07-23  2:35 David Gordon Hogan
@ 2001-07-23 15:06 ` Douglas A. Gwyn
  0 siblings, 0 replies; 8+ messages in thread
From: Douglas A. Gwyn @ 2001-07-23 15:06 UTC (permalink / raw)
  To: 9fans

David Gordon Hogan wrote:
> 'From' memory, the SCSI-2 standard (somewhat stupidly) only specifies
> how to get data from scanners, and says nothing about the format of
> the data itself.

That's not particularly stupid -- 9P specifies how to get data but
not the format of the data itself.

> So every scanner does things differently.  To `solve' this problem,
> each scanner comes with a driver which understands the data format
> (I think the name `TWAIN' has something to do with this).

There have been a few different approaches, but TWAIN is the one
I recommend.  TWAIN developer libraries are available for Windows
and I *think* for UNIX.  The general idea is that the scanner
process is a server.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] scanner support
@ 2001-07-23 13:56 anothy
  0 siblings, 0 replies; 8+ messages in thread
From: anothy @ 2001-07-23 13:56 UTC (permalink / raw)
  To: 9fans

//the SCSI-2 standard (somewhat stupidly) only specifies
//how to get data from scanners, and says nothing about
//the format of the data itself.

well okay, that seems like a reasonable place to start. so... anyone
done anything for getting the data from scanners? it looks like i
need the Extended Read command, which scuzz can't do but
might know something about (it's in scuzz/scsireq.h). there's also
some scanner specific stuff that might be needed, a "scan" and a
"get window" (i think) command.

on using APE:
well, that could work. i've used SANE under Unix, but it's a beast
to build. anyone know of any other scanner software that works by
sending scsi commands (rather than through a specialized driver)
that might be worth trying?
-α.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] scanner support
@ 2001-07-23  5:51 nigel
  0 siblings, 0 replies; 8+ messages in thread
From: nigel @ 2001-07-23  5:51 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

Whether TWAIN really stands for that is reaching urban myth status.

www.twain.org used to say that it doesn't stand for anything, which
sounded like an organisation wanting to forget an embarassing past.
Now they say that it is derived from the expression "and never the
twain shall meet", and that a contest was held retrospectively to
find an acronym. They didn't like any of the suggestions, but
Technology Without An Interesting Name was one of the entries
and it has haunted them ever since. They quote the Free Online
Dictionary of Computing for added emphasis.

http://www.twain.org/faq.htm


[-- Attachment #2: Type: message/rfc822, Size: 1329 bytes --]

From: Jonathan Sergent <sergent@IO.COM>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] scanner support
Date: Sun, 22 Jul 2001 19:50:31 -0700
Message-ID: <20010723025152.B78B1199EB@mail.cse.psu.edu>

>(I think the name `TWAIN' has something to do with this).

TWAIN == "Technology without an interesting name" (seriously)

For what it's worth, photopc works fine under APE for getting images
off of many types of digital cameras (over serial interfaces, not USB).

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] scanner support
@ 2001-07-23  2:50 Jonathan Sergent
  0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Sergent @ 2001-07-23  2:50 UTC (permalink / raw)
  To: 9fans

>(I think the name `TWAIN' has something to do with this).

TWAIN == "Technology without an interesting name" (seriously)

For what it's worth, photopc works fine under APE for getting images
off of many types of digital cameras (over serial interfaces, not USB).


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] scanner support
@ 2001-07-23  2:35 David Gordon Hogan
  2001-07-23 15:06 ` Douglas A. Gwyn
  0 siblings, 1 reply; 8+ messages in thread
From: David Gordon Hogan @ 2001-07-23  2:35 UTC (permalink / raw)
  To: 9fans

> anyone done anything for scanners under Plan 9? i've got an
> HP ScanJet 4c (SCSI, color) i'd like to get working. even scuzz
> would be fine. anyone got any info on how i'd make scuzz do
> that, or what codes SCSI scanners want (i tried scuzz' read
> just for kicks, but no luck)?

'From' memory, the SCSI-2 standard (somewhat stupidly) only specifies
how to get data from scanners, and says nothing about the format of
the data itself.  (There is a field for describing the format, but
it's vendor specific).

So every scanner does things differently.  To `solve' this problem,
each scanner comes with a driver which understands the data format
(I think the name `TWAIN' has something to do with this).

`I'd rather eat Jenkins' - Monty Python.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-07-26  2:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-22 19:45 [9fans] scanner support anothy
2001-07-23  2:35 David Gordon Hogan
2001-07-23 15:06 ` Douglas A. Gwyn
2001-07-23  2:50 Jonathan Sergent
2001-07-23  5:51 nigel
2001-07-23 13:56 anothy
2001-07-23 19:58 Richard Miller
2001-07-26  2:58 David Gordon Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).