blob: a0b9d43ded471c19a786366deb94edaafbac5bea [file] [log] [blame]
Alexandre Julliard491502b1997-11-01 19:08:16 +00001This file describes setting up the Windows ASPI interface.
2
3Warning/Warning/Warning!!!!!!
4=============================
5THIS MAY TRASH YOUR SYSTEM IF USED INCORRECTLY
6THIS MAY TRASH YOUR SYSTEM IF USED CORRECTLY
7
8Now that I have said that. ASPI is a direct link to SCSI devices from
9windows programs. ASPI just forwards the SCSI commands that programs send
10to it to the SCSI bus.
11
12If you use the wrong scsi device in your setup file, you can send
13completely bogus commands to the wrong device - An example would be
14formatting your hard drives (assuming the device gave you permission -
15if you're running as root, all bets are off).
16
17Cookbook for setting up scanner: (At least how mine is to work)
18================================
19
20Windows requirements:
21=====================
220) The scanner software needs to use the "Adaptec" compatible drivers
23(ASPI). At least with Mustek, they allow you the choice of using
24the builtin card or the "Adaptec (AHA)" compatible drivers. This will not
25work any other way.
Alexandre Julliardf90efa91998-06-14 15:24:15 +000026Software that accesses the scanner via a DOS ASPI driver (e.g. ASPI2DOS)
27is supported, too. [AM]
Alexandre Julliard491502b1997-11-01 19:08:16 +000028
291) You probably need a real windows install of the software to set the
30LUN's/SCSI id's up correctly. I'm not exactly sure.
31
32LINUX requirements:
33============================================================
340) Your scsi card must be supported under linux. This will not work with
35an unknown scsi card.
36
371) Compile generic scsi drivers into your kernel.
38
392) Linux by default uses smaller scsi buffers than Windows. There is a
40kernel build define SG_BIG_BUFF (in sg.h) that is by default set too low.
41The SANE project recommends 130560 and this seems to work just fine. This
42does require a kernel rebuild.
43
443) Make the devices for the scanner (generic scsi devices) - look at the scsi
45programming how-to for device numbering.
46
474) I would recommend making the scanner device writable by a group.
48I made a group called "scanner" and added myself to it. Running as root
49increases your risk of sending bad scsi commands to the wrong device. With
50a regular user, you are better protected.
51
525) Add a scsi device entry for your particular scanner to wine.conf.
53The format is [scsi cCtTdD] where C=controller, T=target, D=LUN
54
55ex. I set mine up as controller 0, Target 6, LUN 0.
56[scsi c0t6d0]
57Device=/dev/sgi
58
59Yours will vary with your particular SCSI setup.
60
61
62General Information:
63====================
64The mustek scanner I have was shipped with a package "ipplus". This
65program uses the TWAIN driver specification to access scanners.
66
67 (TWAIN MANAGER)
68ipplus.exe <---> (TWAIN INTERFACE) <---> (TWAIN DATA SOURCE . ASPI) -> WINASPI
69
70NOTES/BUGS:
71===========
72The biggest is that it only works under linux at the moment.
73The ASPI code was only tested using a Mustek 800SP with a Buslogic
74controller under Linux.
Alexandre Julliardf90efa91998-06-14 15:24:15 +000075The ASPI code has only been tested with:
76- a Mustek 800SP with a Buslogic controller under Linux [BM]
77- a Siemens Nixdorf 9036 with Adaptec AVA-1505 under Linux
78 accessed via DOSASPI.
79 Note that I had color problems, though (barely readable result). [AM]
Alexandre Julliard491502b1997-11-01 19:08:16 +000080
81I make no warranty to the aspi code. It makes my scanner work. Your scanner
82may explode. I have no way of determining this. I take zero responsibility!
83
84
85Bruce Milner
Alexandre Julliardf90efa91998-06-14 15:24:15 +000086Additions by Andreas Mohr