home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 4 Drivers / 04-Drivers.zip / vaspi.zip / vaspi.inf (.txt) < prev    next >
OS/2 Help File  |  1994-09-14  |  30KB  |  635 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Copyright ΓòÉΓòÉΓòÉ
  3.  
  4.  
  5.     Virtual ASPI driver for OS/2 2.x
  6.     (C) 1994 ARS Computer und Consulting GmbH
  7.  
  8.  
  9.     ARS Computer und Consulting GmbH
  10.  
  11.     Frankfurter Ring 193a
  12.     D-80807 Muenchen
  13.  
  14.     Germany
  15.  
  16.  
  17.     Telephone:    +49 89 / 3 23 66 30-0
  18.     Fax:          +49 89 / 3 24 45 24
  19.     CompuServe:   100265,2651
  20.  
  21.  
  22. ΓòÉΓòÉΓòÉ 2. Deutsche Dokumentation ΓòÉΓòÉΓòÉ
  23.  
  24. Virtueller ASPI driver f╨ær OS/2 2.x 
  25. (C) 1994 ARS Computer und Consulting GmbH 
  26.  
  27. Inhalt: 
  28.  
  29.    1. ╨¬berblick 
  30.    2. Installation 
  31.    3. DOS-Einstellungen 
  32.    4. Programmier-Schnittstelle 
  33.    5. Test-Programme 
  34.    6. Kompatibilit╨öt 
  35.    7. Bekannte Probleme 
  36.    8. Test-Berichte 
  37.  
  38.  
  39. ΓòÉΓòÉΓòÉ 2.1. ╨¬berblick ΓòÉΓòÉΓòÉ
  40.  
  41. OS/2 2.x enth╨ölt eine Treiberarchitektur f╨ær SCSI-Host-Adapter und 
  42. Peripherie-Ger╨öte. Diese besteht aus einem Host-Adapter-spezifischen Treiber 
  43. (ADD) sowie darauf aufbauenden Ger╨öte-Managern (DMD), die entweder spezifisch 
  44. f╨ær Ger╨öteklassen sind (Festplatten, CD-ROM-Laufwerke) oder mit einer 
  45. universellen Schnittstelle f╨ær weitere, anwendungsspezifische Ger╨ötetreiber 
  46. versehen sind. 
  47.  
  48. Einer dieser universellen Ger╨öte-Manager von OS/2 2.x implementiert die von 
  49. Adaptec entwickelte ASPI-Programmierschnittstelle f╨ær OS/2. ASPI (Advanced SCSI 
  50. Programming Interface) erlaubt die Entwicklung von Anwendungen, die unabh╨öngig 
  51. vom eingesetzten SCSI-Host-Adapter mit angeschlossenen Peripherie-Ger╨öten 
  52. kommunizieren k╨ñnnen. ASPI-Definitionen existieren f╨ær DOS, Windows, OS/2 sowie 
  53. Novell NetWare 3.x und 4.x (Server). 
  54.  
  55. Die in OS/2 2.x enthaltene ASPI-Schnittstelle befindet sich im Basis- 
  56. Ger╨öte-Manager OS2ASPI.DMD (siehe Online-Dokumentation von OS/2). In dieser 
  57. Form werden nur OS/2-Ger╨öte-Treiber unterst╨ætzt, die auf der ASPI-Schnittstelle 
  58. aufbauen. Es k╨ñnnen weder OS/2-Anwendungsprogramme noch unter OS/2 2.x 
  59. ablaufende DOS/Windows-Anwendungen direkt auf die ASPI-Schnittstelle von OS/2 
  60. 2.x zugreifen. 
  61.  
  62. Da viele existierende DOS/Windows-Anwendungen zur Kommunikation mit 
  63. SCSI-Ger╨öten ASPI verwenden (z.B. Backup-Software f╨ær SCSI-Band- laufwerke oder 
  64. Scanner-Software f╨ær SCSI-Scanner), konnten solche Anwendungen bisher nicht 
  65. unter OS/2 2.x eingesetzt werden. 
  66.  
  67. Der vorliegende virtuelle ASPI-Treiber (VASPI) f╨ær OS/2 2.x implementiert eine 
  68. ASPI-Schnittstelle f╨ær DOS- und Windows-Anwendungen in den DOS- und 
  69. Win-OS/2-Sessions unter OS/2 2.x. Sowohl die ASPI-Definition f╨ær DOS als auch 
  70. die ASPI-Definition f╨ær Windows wurden implementiert. Au╤üerdem enth╨ölt der 
  71. VASPI-Treiber eine ASPI- Schnittstelle f╨ær OS/2-Anwendungen, da diese sonst 
  72. nicht direkt auf das OS/2-ASPI zugreifen k╨ñnnen und jeweils eigene 
  73. Ger╨öte-Treiber ben╨ñtigen w╨ærden. 
  74.  
  75.  
  76. ΓòÉΓòÉΓòÉ 2.2. Installation ΓòÉΓòÉΓòÉ
  77.  
  78. Der virtuelle ASPI-Treiber besteht aus vier Treiber-Dateien: 
  79.  
  80.    1. dem physikalischen VASPI-Treiber, der die Verbindung zum OS/2-ASPI (das 
  81.       mit BASEDEV=OS2ASPI.DMD installiert wird) herstellt, dieser Treiber hei╤üt 
  82.       VASPIDD.SYS, sowie 
  83.  
  84.    2. dem virtuellen VASPI-Treiber, der die ASPI-Schnittstelle f╨ær 
  85.       DOS-Sitzungen implementiert, dieser Treiber hei╤üt VASPI.SYS, 
  86.  
  87.    3. dem Hilfs-Treiber f╨ær spezifische DOS-Sitzungen (unter OS/2 von 
  88.       DOS-Diskette oder Image-Datei gestartet), VASPISTB.SYS und 
  89.  
  90.    4. der Windows-DLL, die die ASPI-Schnittstelle f╨ær Windows implementiert, 
  91.       WINASPI.DLL. 
  92.  
  93.  Zur automatischen Installation des VASPI-Treibers befindet sich eine 
  94.  Ger╨ötetreiber-Konfigurationsdatei auf der VASPI-Diskette. Bitte benutzen Sie 
  95.  das Ger╨ötetreiber-Installationsprogramm im Ordner "System-Konfiguration" zur 
  96.  Installation des VASPI-Treibers. Dadurch wird auch, falls notwendig, der 
  97.  OS/2-ASPI-Treiber (OS2ASPI.DMD) in CONFIG.SYS geladen. Diese Installation 
  98.  setzt allerdings voraus, da╤ü der Basis-Ger╨ötetreiber f╨ær Ihren 
  99.  SCSI-Hostadapter bereits installiert wurde (siehe unten f╨ær n╨öhere 
  100.  Informationen). Bitte lesen Sie auch den folgenden Text, f╨ær Hinweise zur 
  101.  eventuellen Fehlersuche. Nachdem die Installation beendet wurde, m╨æssen Sie 
  102.  den Rechner neu starten, damit die ╨₧nderungen wirksam werden. 
  103.  
  104.  Zur manuellen Installation werden die beiden OS/2-Treiber in der CONFIG.SYS 
  105.  wie folgt eingetragen (wir empfehlen, die Treiber in die \OS2- bzw. 
  106.  \OS2\MDOS-Verzeichnisse auf Ihrem Boot-Laufwerk zu kopieren): 
  107.  
  108.     DEVICE=C:\OS2\VASPIDD.SYS
  109.     DEVICE=C:\OS2\MDOS\VASPI.SYS
  110.  
  111.  Falls Sie die Treiber auf einem anderen Laufwerk oder in einem anderen 
  112.  Verzeichnis installiert haben oder Ihr System von einem anderen Laufwerk als 
  113.  C: startet, korrigieren Sie bitte die Zeilen sinngem╨ö╤ü. 
  114.  
  115.  Zus╨ötzlich zu den VASPI-Treibern m╨æssen auch in jedem Fall der Basis-Treiber 
  116.  des SCSI-Hostadapters (mit Endung .ADD) und der OS/2-ASPI-Treiber 
  117.  (OS2ASPI.DMD) geladen sein. Eine Reihe von Hostadaptern wird von OS/2 direkt 
  118.  unterst╨ætzt, f╨ær viele weitere Hostadapter sind OS/2-Treiber (.ADD) vom 
  119.  Hersteller verf╨ægbar. F╨ær den von OS/2 bereits unterst╨ætzten Hostadapter vom 
  120.  Typ Adaptec AHA-1542 sind in CONFIG.SYS zum Beispiel zu laden: 
  121.  
  122.     BASEDEV=AHA154X.ADD /V
  123.     BASEDEV=OS2ASPI.DMD
  124.  
  125.  F╨ær andere Hostadapter ist AHA154X.ADD durch den entsprechend passenden 
  126.  Treiber zu ersetzen. Weitere Informationen ╨æber OS2ASPI.DMD und die mit OS/2 
  127.  mitgelieferten ADD-Treiber sowie deren Optionen finden sie in der 
  128.  OS/2-(Online-)Dokumentation unter dem Thema BASEDEV. 
  129.  
  130.  Die genaue Position der beiden Zeilen mit VASPIDD.SYS und VASPI.SYS in der 
  131.  CONFIG.SYS ist nicht wichtig, wir empfehlen jedoch, beide Zeilen direkt nach 
  132.  der Zeile BASEDEV=OS2ASPI.DMD einzutragen. 
  133.  
  134.  Die Windows-DLL (WINASPI.DLL) ist in das Win-OS/2-System-Verzeichnis zu 
  135.  kopieren, in der Regel C:\OS2\MDOS\WINOS2\SYSTEM oder, bei OS/2 f╨ær Windows, 
  136.  C:\WINDOWS\SYSTEM. 
  137.  
  138.  Der Hilfs-Treiber VASPISTB.SYS sollte in das Verzeichnis C:\OS2\MDOS kopiert 
  139.  werden. Er wird nur ben╨ñtigt, wenn eine spezielle Original-DOS-Version von 
  140.  Diskette oder Disketten-Image unter OS/2 gestartet werden soll und darin ASPI 
  141.  ben╨ñtigt wird. In diesem Fall mu╤ü VASPISTB.SYS in der CONFIG.SYS dieser 
  142.  DOS-Sitzung (nicht der CONFIG.SYS von OS/2) geladen werden. 
  143.  
  144.  Damit ist die Installation abgeschlossen, Sie m╨æssen Ihr System jedoch neu 
  145.  starten, damit die ╨₧nderungen wirksam werden. 
  146.  
  147.  Achten Sie darauf, dass beim Start Ihres Systems alle SCSI-Ger╨öte am Rechner 
  148.  korrekt angeschlossen und auch eingeschaltet sind. Die OS/2- Treiber f╨ær die 
  149.  meisten SCSI-Hostadapter und der OS/2-ASPI-Manager pr╨æfen beim Laden nach, ob 
  150.  ╨æberhaupt Ger╨öte zu verwalten sind. Ist dies nicht der Fall, so laden sich die 
  151.  Treiber m╨ñglicherweise nicht. 
  152.  
  153.  Pr╨æfen Sie bitte auch, ob die Terminierung des SCSI-Bus korrekt installiert 
  154.  ist. Ein h╨öufig auftretender Fehler ist, da╤ü sowohl intern als auch extern am 
  155.  SCSI-Hostadapter Ger╨öte angeschlossen wurden, die Terminierung auf dem 
  156.  Hostadapter selbst aber nicht entfernt wurde (die Terminierung des SCSI-Bus 
  157.  darf nur an den beiden Enden erfolgen). In solchen F╨öllen werden unter 
  158.  Umst╨önden angeschlossene Ger╨öte nicht erkannt. Die Terminierung auf dem 
  159.  Hostadapter wird in der Regel durch Modifikation von Jumpern, DIP-Schaltern 
  160.  oder steckbaren Widerstandsleisten oder per Software eingestellt. 
  161.  
  162.  Um festzustellen, ob und welche Ger╨öte vom SCSI-Hostadapter erkannt wurden 
  163.  (falls das BIOS Ihres Hostadapters nicht schon beim Selbsttest ein Liste der 
  164.  gefundenen Ger╨öte ausgibt) k╨ñnnen Sie dem BASEDEV-Treiber Ihres Hostadapters 
  165.  in der CONFIG.SYS die Option /V angeben. Die meisten OS/2-ADD-Treiber kennen 
  166.  diese Option und reagieren darauf meist mit Ausgabe von Versionsnummern, ggf. 
  167.  Hardware- Versionen sowie einer Liste der gefundenen Ger╨öte. 
  168.  
  169.  Laden alle Treiber korrekt, so k╨ñnnen Sie schlie╤ülich mit den mitgelieferten 
  170.  Testprogrammen (siehe unten) die Liste der verf╨ægbaren Ger╨öte ausgeben. Diese 
  171.  Liste ist oft kuerzer als die vom ADD-Treiber ausgegebene, da einige Ger╨öte 
  172.  bereits von anderen Ger╨öte-Managern als dem ASPI-Manager verwaltet werden und 
  173.  daher nicht fuer ASPI verf╨ægbar sind. 
  174.  
  175.  
  176. ΓòÉΓòÉΓòÉ 2.3. DOS-Einstellungen ΓòÉΓòÉΓòÉ
  177.  
  178. Wenn Sie die Treiber korrekt installiert haben und Ihr System neu gestartet 
  179. haben, werden Sie in den DOS-Einstellungen f╨ær Ihre DOS-Programm-Objekte einen 
  180. neuen Eintrag finden, ASPI_AVAILABLE. Dieser Parameter legt fest, ob f╨ær die 
  181. durch dieses Objekt gestartete Session das ASPI-Interface verf╨ægbar ist oder 
  182. nicht. Die Voreinstellung ist OFF, d.h. das ASPI-Interface ist NICHT verf╨ægbar. 
  183. ╨₧ndern Sie diesen Parameter f╨ær alle Programm-Objekte, mit denen Sie Ihre 
  184. ASPI-Anwendungen (DOS bzw. Win-OS/2) starten, auf ON. 
  185.  
  186. Die Voreinstellung (OFF) kann global auf ON geaendert werden, indem sie auf der 
  187. Zeile DEVICE=C:\OS2\MDOS\VASPI.SYS in CONFIG.SYS die Option /ON angeben. In 
  188. diesem Fall haben alle DOS- bzw. Win-OS/2-Sessions automatisch ASPI verfuegbar, 
  189. jedoch koennen Sie ASPI fuer jede Session bei Bedarf immer noch getrennt 
  190. abschalten. 
  191.  
  192.  
  193. ΓòÉΓòÉΓòÉ 2.4. Programmier-Schnittstelle ΓòÉΓòÉΓòÉ
  194.  
  195. Wenn Sie eigene DOS-oder Windows-Anwendungen f╨ær ASPI entwickeln wollen, so 
  196. k╨ñnnen Sie dies entsprechend der von Adaptec verf╨ægbaren Dokumentation tun. 
  197. Wollen Sie OS/2-Anwendungen entwickeln, die auf ASPI zugreifen, wollen jedoch 
  198. keinen eigenen Ger╨öte-Treiber daf╨ær schreiben, so k╨ñnnen Sie auf die 
  199. Programmierschnittstelle von VASPIDD.SYS zugreifen. 
  200.  
  201. Beispiele f╨ær DOS- und OS/2-Anwendungen dieser Art finden Sie auf der 
  202. mitgelieferten Diskette, im Verzeichnis \SAMPLES. Darin befinden sich die 
  203. Quelltexte der unten erw╨öhnten DOS- bzw. OS/2-Testprogramme f╨ær ASPI sowie eine 
  204. C-Header-Datei mit den ASPI-Definitionen f╨ær DOS- und OS/2-Anwendungen. 
  205.  
  206. Das DOS-Beispielprogramm kann mit Microsoft C, Version 6.00 oder neuer 
  207. ╨æbersetzt werden. F╨ær andere Compiler sind ╨₧nderungen notwendig, da das 
  208. Beispiel den Inline-Assembler f╨ær den Zugriff auf die DOS-ASPI-Schnittstelle 
  209. benutzt. Dieses Beispielprogramm funktioniert nat╨ærlich auch unter normalem DOS 
  210. mit ASPI-Treibern. 
  211.  
  212. Das OS/2-Beispielprogramm kann als 16-bit-Anwendung mit Microsoft C, Version 
  213. 6.00 oder Watcom C/C++ 16, Version 9.5 ╨æbersetzt werden. Zur Erzeugung einer 
  214. 32-bit-Anwendung kann IBM C Set++, Watcom C/C++ 32, Version 9.5, oder der 
  215. GNU-C-Compiler verwendet werden. F╨ær andere OS/2-Compiler sollten nur minimale 
  216. ╨₧nderungen notwendig sein, da f╨ær den Zugriff auf VASPIDD.SYS die 
  217. Standard-I/O-Control-Schnittstelle verwendet wird. 
  218.  
  219. Die Programmier-Schnittstelle f╨ær OS/2-Anwendungen kennt zwar wie die DOS- und 
  220. Windows-ASPI-Definitionen auch einen "posting" und "non- posting" Modus (siehe 
  221. Adaptec-Dokumentation f╨ær ASPI), jedoch ist unter OS/2 aufgrund der 
  222. Systemarchitektur ein "posting" nur f╨ær Ger╨ötetreiber m╨ñglich. SCSI-Requests, 
  223. die ╨æber die Programmier- Schnittstelle in VASPIDD.SYS aufgerufen werden, 
  224. werden immer im "posting"-Modus abgearbeitet, jedoch befindet sich die 
  225. Post-Routine innerhalb dieses Treibers und es kann keine Post-Routine in der 
  226. Anwendung definiert werden. Das bedeutet, da╤ü Aufrufe ╨æber diese 
  227. Programmier-Schnittstelle erst zur Anwendung zur╨æckkehren, wenn der gew╨ænschte 
  228. SCSI-Request vollst╨öndig abgearbeitet wurde, die Anwendung blockiert also in 
  229. diesem Aufruf f╨ær diese Zeit. Dies betrifft jedoch nur den aufrufenden Thread. 
  230. Wenn die Anwendung also zur gleichen Zeit noch andere Aufgaben erledigen soll, 
  231. mu╤ü sie "multi-threaded" geschrieben sein. 
  232.  
  233. Das "posting" f╨ær die DOS- und Windows-ASPI- Schnittstellen funktioniert 
  234. jedoch, es wird vom virtuellen ASPI-Treiber simuliert, da dies von 
  235. existierenden DOS- und Windows- Anwendungen verwendet wird. 
  236.  
  237. Es k╨ñnnen mehrere Anwendungen bzw. Threads gleichzeitig auf die Schnittstelle 
  238. zugreifen, der Treiber VASPIDD.SYS ist reentrant. 
  239.  
  240.  
  241. ΓòÉΓòÉΓòÉ 2.5. Test-Programme ΓòÉΓòÉΓòÉ
  242.  
  243. Auf der Diskette befinden sich zwei Test-Programme, ASPI.EXE (eine 
  244. DOS-Anwendung) und ASPI2.EXE (eine OS/2-Anwendung), die zur Diagnose verwendet 
  245. werden k╨ñnnen. Dies sind zugleich Beispielprogramme (siehe oben) und werden 
  246. auch als Quelltext mitgeliefert. 
  247.  
  248. Beide Programme, sowohl DOS- als auch OS/2-Version, verwenden ASPI, um alle im 
  249. System vorhandenen SCSI-Host-Adapter anzuzeigen sowie alle an diese 
  250. angeschlossenen SCSI-Peripherieger╨öte, sofern sie nicht bereits (im Falle von 
  251. Festplatten und CD-ROM-Laufwerken) von einem anderen Ger╨öte-Manager verwaltet 
  252. werden. Bei allen gefundenen Ger╨öten werden Typ und Hersteller- bzw. 
  253. Ger╨öte-Name ausgegeben. 
  254.  
  255.  
  256. ΓòÉΓòÉΓòÉ 2.6. Kompatibilit╨öt ΓòÉΓòÉΓòÉ
  257.  
  258. Folgende DOS- bzw. Windows-Anwendungen wurden bisher erfolgreich auf 
  259. Kompatibilit╨öt getestet: 
  260.  
  261.    1. SCSI-Tape-Backup-Software (mit einem Tandberg TDC-4100) 
  262.  
  263.           NovaStore NovaBack, Version 3.57 
  264.           CorelSCSI Tape Backup f╨ær DOS, Version 1.22 
  265.           CorelSCSI Tape Backup f╨ær Windows, Version 1.14 
  266.           Cheyenne ARCserve/Solo f╨ær DOS, Version 2.11 
  267.           GNU-tar (GTAK 1.00) 
  268.           GNU-tar (ASPI-TAR) 
  269.  
  270.    2. SCSI-Scanner-Software 
  271.  
  272.           HP DeskScan f╨ær Windows, Versionen 1.51 und 2.0 
  273.           Calera WordScan+ f╨ær Windows (OCR-Software mit Scanner-Interface) 
  274.           Caere OmniPage 2.10 f╨ær Windows (OCR software mit Scanner-Interface) 
  275.           ImpOS/2 1.10 (Bildbearbeitungs-Software mit Scanner-Interface) 
  276.            Diese OS/2-Software kann ╨æber ein Hilfsprogramm auf einen 
  277.            DOS-Ger╨ötetreiber f╨ær HP-Scanner in einer DOS-Session zugreifen. 
  278.  
  279.  (Diese Programme wurden mit einem HP ScanJet IIcx und dessen mitgeliefertem 
  280.  ASPI-kompatiblen DOS-Treiber SJIIX.SYS getestet.) 
  281.  
  282.           HighScan f╨ær Windows, Version 3.1, Scanner: Siemens ST-400 
  283.           Agfa PC View Color, Version 1.02, Scanner: Agfa Arcus Plus 
  284.           Agfa FotoLook, Version 1.26E, Scanner: Agfa Arcus Plus 
  285.           egsSoft Keyfile ScanServer, Scanner: Fujitsu M3096G 
  286.  
  287.  Die Programme HP DeskScan und Agfa FotoLook stellen auch eine 
  288.  TWAIN-Schnittstelle zur Verf╨ægung, so da╤ü damit und den entsprechenden 
  289.  Scannern auch andere Windows-Programme funktionieren, die Scanner ╨æber eine 
  290.  TWAIN-Schnittstelle ansprechen k╨ñnnen, z.B. Adobe PhotoStyler, Picture 
  291.  Publisher oder Corel PhotoPaint (aus Corel Draw 4.0 f╨ær Windows). 
  292.  
  293.  Sollten Sie andere Software mit dem VASPI-Treiber einsetzen, die hier nicht 
  294.  aufgef╨æhrt ist, bitten wir Sie um eine kurze Mitteilung, damit wir Ihre 
  295.  Software in unsere Kompatibilit╨öts-Liste aufnehmen k╨ñnnen. 
  296.  
  297.  
  298. ΓòÉΓòÉΓòÉ 2.7. Bekannte Probleme ΓòÉΓòÉΓòÉ
  299.  
  300.      Wird fuer eine DOS-Session das ASPI-Interface abgeschaltet, so kann 
  301.       eventuell manche ASPI-kompatible Software irrtuemlich annehmen, es sei 
  302.       dennoch eine ASPI-Schnittstelle vorhanden. Alle ASPI-Auftr╨öge werden 
  303.       jedoch in diesem Fall fehlschlagen. 
  304.  
  305.      Werden Windows-Programme, die ASPI benutzen, in WIN-OS/2-Sitzungen vom 
  306.       Gesamt-Bildschirmtyp eingesetzt, so ist es normal, wenn sich w╨öhrend der 
  307.       Wartezeit bei lang dauernden SCSI-Befehlen (zum Beispiel Band 
  308.       zur╨æckspulen usw.) der Mauszeiger nicht bewegen l╨ö╤üt. Das ist darauf 
  309.       zur╨æckzuf╨æhren, da╤ü diese Sitzung w╨öhrend dieser Zeit im ASPI-Treiber 
  310.       blockiert ist. 
  311.  
  312.      Der Betrieb der Central Point Backup-Programme in den DOS- (8.0, 9.0) und 
  313.       Windows-Versionen (2.0) von PC-TOOLS mit dem VASPI-Treiber ist nicht 
  314.       zuverl╨össig m╨ñglich. Zwar k╨ñnnen diese Programme auf SCSI-Bandlaufwerke 
  315.       zugreifen, jedoch treten in unregelm╨ö╤üigen Abst╨önden Abst╨ærze auf, die 
  316.       eine Beendigung der jeweiligen DOS- bzw. WIN-OS/2-Sitzung zur Folge 
  317.       haben. 
  318.  
  319.  
  320. ΓòÉΓòÉΓòÉ 2.8. Test-Berichte ΓòÉΓòÉΓòÉ
  321.  
  322. Sollten Sie mit einer ASPI-kompatiblen DOS- oder Windows-Software Probleme beim 
  323. Einsatz mit dem VASPI-Treiber haben, bitten wir um ╨¬bersendung eines 
  324. Fehler-Berichtes mit folgenden Angaben: 
  325.  
  326.      Version und Seriennummer des VASPI-Treibers 
  327.      genaue Art, Bezeichnung, Version und Hersteller der Software 
  328.      Typ und Hersteller des SCSI-Peripherie-Ger╨ötes 
  329.      Typ und Hersteller des SCSI-Hostadapters 
  330.      Ursprung, Name und Datum/Gr╨ñ╤üe des Host-Adapter-Treibers (.ADD) 
  331.      Ursprung, Name und Datum/Gr╨ñ╤üe des OS/2-ASPI-Treibers (OS2ASPI.DMD) 
  332.      Betriebssystem-Version (falls Sie nicht OS/2 2.1 einsetzen) 
  333.      Computer-Architektur (ISA, EISA, MCA, PCI) 
  334.  
  335.  sowie Ihrer Anschrift, Telefon- und Fax-Nummer. 
  336.  
  337.  
  338. ΓòÉΓòÉΓòÉ 3. English Documentation ΓòÉΓòÉΓòÉ
  339.  
  340. Virtual ASPI driver for OS/2 2.x 
  341. (C) 1994 ARS Computer und Consulting GmbH 
  342.  
  343. Contents: 
  344.  
  345.    1. Overview 
  346.    2. Installation 
  347.    3. DOS Settings 
  348.    4. Programmer's API 
  349.    5. Test Programs 
  350.    6. Compatibility 
  351.    7. Known Problems 
  352.    8. Test/Problem Reports 
  353.  
  354.  
  355. ΓòÉΓòÉΓòÉ 3.1. Overview ΓòÉΓòÉΓòÉ
  356.  
  357. OS/2 2.x contains a driver architecture for SCSI host adaptors and peripheral 
  358. devices. It consists of a host adaptor specific driver (ADD) and, based on 
  359. this, device managers (DMD) which are either specific for common classes of 
  360. devices (hard disks, CD-ROM drives) or which provide a universal interface for 
  361. additional application specific device drivers. 
  362.  
  363. One of these universal device managers in OS/2 2.x implements Adaptec's ASPI 
  364. programming interface for OS/2. ASPI (Advanced SCSI Programming Interface) 
  365. allows development of applications, which can communicate with peripheral 
  366. devices, independent of the actual SCSI host adaptor. ASPI definitions exist 
  367. for DOS, Windows, OS/2 and Novell NetWare 3.x and 4.x servers. 
  368.  
  369. The ASPI programming interface in OS/2 2.x resides in the base device manager 
  370. OS2ASPI.DMD (please refer to the OS/2 online documentation for more information 
  371. about it). In this implementation, it supports only OS/2 device drivers which 
  372. build upon the ASPI interface. Neither can OS/2 applications nor can DOS and 
  373. Windows applications running under OS/2 2.x access the ASPI interface of OS/2 
  374. 2.x directly. 
  375.  
  376. Since many existing DOS and Windows applications use ASPI to communicate with 
  377. SCSI devices (for example, backup software for SCSI tape devices or image 
  378. scanning software for SCSI scanners), such applications could not be used under 
  379. OS/2 2.x so far. 
  380.  
  381. The included virtual ASPI driver (VASPI) for OS/2 2.x implements an ASPI 
  382. interface for DOS and Windows applications running in DOS and WIN-OS/2 sessions 
  383. under OS/2 2.x. Both the ASPI definition for DOS and the ASPI definition for 
  384. Windows are implemented. In addition the driver contains an ASPI interface for 
  385. OS/2 applications, since they can otherwise not directly access the OS/2 ASPI 
  386. and would thus need their own device drivers for this purpose. 
  387.  
  388.  
  389. ΓòÉΓòÉΓòÉ 3.2. Installation ΓòÉΓòÉΓòÉ
  390.  
  391. The virtual ASPI driver consists of four drivers modules: 
  392.  
  393.    1. the physical VASPI driver which connects to the OS/2 ASPI driver (which 
  394.       is installed with BASEDEV=OS2ASPI.DMD), this module is named VASPIDD.SYS, 
  395.  
  396.    2. the virtual VASPI driver which implements the ASPI definition for DOS 
  397.       sessions, named VASPI.SYS, 
  398.  
  399.    3. the stub device driver for specific DOS sessions (booted from a DOS 
  400.       floppy or image file under OS/2), VASPISTB.SYS and 
  401.  
  402.    4. the Windows DLL which implements the ASPI definition for Windows, named 
  403.       WINASPI.DLL. 
  404.  
  405.  For automatic installation, a device driver profile is included. Use the 
  406.  "Device Driver Install" object in the "System Setup" folder to install the 
  407.  VASPI driver. This procedure also takes care to add the reference to the OS/2 
  408.  ASPI driver (OS2ASPI.DMD) to your CONFIG.SYS, if necessary. However, this 
  409.  installation method assumes that the base device driver for your SCSI host 
  410.  adaptor is already installed (see below for more information). Please also 
  411.  read the text below on trouble shooting. After installation is completed, you 
  412.  have to reboot your system for the changes to take effect. 
  413.  
  414.  For manual installation, the two core device drivers are loaded in CONFIG.SYS 
  415.  as follows (we suggest copying both drivers into the \OS2 and \OS2\MDOS 
  416.  directories on your system boot drive): 
  417.  
  418.     DEVICE=C:\OS2\VASPIDD.SYS
  419.     DEVICE=C:\OS2\MDOS\VASPI.SYS
  420.  
  421.  If you install the drivers on another drive or directory or your system boots 
  422.  from a different drive than C:, please correct the two lines as needed. 
  423.  
  424.  In addition to the VASPI drivers there must also two additional drivers always 
  425.  be loaded: the base device driver for the SCSI host adaptor (with extension 
  426.  .ADD) and the OS/2 ASPI driver (OS2ASPI.DMD). A number of host adaptors is 
  427.  directly supported by OS/2 and for many other host adaptors there are OS/2 
  428.  drivers (.ADD) available from the manufacturer. For the Adaptec AHA-1542 host 
  429.  adaptor, which is directly supported by OS/2, the following drivers are to be 
  430.  loaded in CONFIG.SYS, for example: 
  431.  
  432.     BASEDEV=AHA154X.ADD /V
  433.     BASEDEV=OS2ASPI.DMD
  434.  
  435.  For other host adaptors AHA154X.ADD has to be replaced by the appropriate 
  436.  driver. More details about OS2ASPI.DMD, the ADD drivers included with OS/2 and 
  437.  their options are available in the OS/2 (online) documentation under the topic 
  438.  BASEDEV. 
  439.  
  440.  The exact position of the two lines loading VASPIDD.SYS and VASPI.SYS in 
  441.  CONFIG.SYS is not significant, but we suggest putting them directly after the 
  442.  BASEDEV=OS2ASPI.DMD line. 
  443.  
  444.  The Windows DLL (WINASPI.DLL) must be copied into the WIN-OS/2 system 
  445.  directory, usually C:\OS2\MDOS\WINOS2\SYSTEM, or, in the case of OS/2 for 
  446.  Windows, C:\WINDOWS\SYSTEM. 
  447.  
  448.  The stub device driver VASPISTB.SYS should be copied to C:\OS2\MDOS. It will 
  449.  only be needed if a real (original) DOS version is started under OS/2 from a 
  450.  DOS floppy or a floppy image and ASPI is needed. In this case, VASPISTB.SYS 
  451.  must be loaded in the CONFIG.SYS of that DOS session (and not in the OS/2 
  452.  CONFIG.SYS). 
  453.  
  454.  With these steps, the installation is completed, but you have to restart 
  455.  (reboot) your system to make the changes active. 
  456.  
  457.  Please ensure that during boot of your system all SCSI peripherals are 
  458.  correctly connected to the compuer and are also turned on. The OS/2 drivers 
  459.  for most SCSI host adaptore and the OS/2 ASPI device manager check at load 
  460.  time, if there are devices to manage at all. If that is not the case, these 
  461.  drivers perhaps don't even load. 
  462.  
  463.  Please check also, if the SCSI bus termination is installed correctly. A 
  464.  common error is that both internal and external devices are connected to the 
  465.  SCSI host adaptor but the termination on the host adaptor itself was not 
  466.  removed (the SCSI bus must be terminated only on both ends). In such cases 
  467.  some or all connected devices may not be detected and data transfer errors can 
  468.  occur. The termination on the host adaptor is usually configured with jumpers, 
  469.  DIP switches, removable resistor packs or even via software. 
  470.  
  471.  To determine if and which devices are recognized by the host adaptor (if that 
  472.  feature is not already provided by your host adaptors BIOS during the power on 
  473.  self test) you can add the /V option to your host adaptors BASEDEV driver in 
  474.  CONFIG.SYS. Most OS/2 ADD drivers recognize this option and respond by 
  475.  displaying version numbers, perhaps hardware revisions and most often a list 
  476.  of found SCSI devices. 
  477.  
  478.  If all drivers load correctly, you can finally use the included test programs 
  479.  (see below) to retrieve a list of available devices for ASPI applications. 
  480.  This list will often be shorter that the ADD drivers list, because some 
  481.  devices may already be in use by other device managers and are thus not 
  482.  available to the ASPI manager. 
  483.  
  484.  
  485. ΓòÉΓòÉΓòÉ 3.3. DOS Settings ΓòÉΓòÉΓòÉ
  486.  
  487. After you have installed the driver(s) correctly and have restarted your 
  488. system, you will find a new entry in the DOS settings of DOS program objects, 
  489. ASPI_ENABLE. This parameter defines, if ASPI is available in the session 
  490. started from this object. The default is OFF, i.e. the ASPI interface is NOT 
  491. available. Please change this parameter for all those program objects which you 
  492. use to start your (DOS and WIN-OS/2) ASPI applications to ON. 
  493.  
  494. The default (OFF) can be changed globally to ON by adding the option /ON to the 
  495. line DEVICE=C:\OS2\MDOS\VASPI.SYS in your CONFIG.SYS. In this case all DOS and 
  496. WIN-OS/2 sessions have ASPI available automatically, but you can still disable 
  497. ASPI for each program object individually. 
  498.  
  499.  
  500. ΓòÉΓòÉΓòÉ 3.4. Programmer's API ΓòÉΓòÉΓòÉ
  501.  
  502. If you want to develop own DOS or Windows applications for ASPI, you can use 
  503. the documentation and sample code available from Adaptec. If you want to 
  504. develop OS/2 ASPI applications but want to avoid writing your own device driver 
  505. interfacing with OS/2's ASPI manager, you can use the API included in 
  506. VASPIDD.SYS. 
  507.  
  508. You can find sample DOS and OS/2 ASPI applications in the \SAMPLES directory in 
  509. the distribution of this driver. It contains the source code for the DOS and 
  510. OS/2 test programs for ASPI (as mentioned below) and a C header file with the 
  511. ASPI definitions for DOS and OS/2 ASPI applications. 
  512.  
  513. The DOS test program can be compiled with Microsoft C, version 6.00 or newer. 
  514. For other compilers, changes are required because inline assembly language 
  515. statements are used for access to the DOS ASPI interface. This sample program 
  516. does of course also work under plain DOS with standard ASPI drivers. 
  517.  
  518. The OS/2 test program can be compiled as 16-bit application with Microsoft C, 
  519. version 6.00 or Watcom C/C++ 16, version 9.5 or higher. To generate a 32-bit 
  520. version, IBM C Set++, Watcom C/C++ 32, version 9.5 or higher or the GNU C 
  521. compiler can be used. For other compilers only minimal changes should be 
  522. required, since the standard I/O control interface is used for access to 
  523. VASPIDD.SYS. 
  524.  
  525. This API for OS/2 ASPI applications knows a "posting" and a "non- posting" 
  526. mode, just like the DOS and Windows versions (see Adaptec ASPI documentation 
  527. for an explanation what posting means). However, because of the proteced 
  528. architecture of OS/2, postimg mode is only possible for device drivers 
  529. interfacing directly with the OS/2 ASPI manager. SCSI requests via the API in 
  530. VASPIDD.SYS are always processed in posting mode, but the post routine is 
  531. contained in this driver and there is no way to define a post routine in the 
  532. calling application. That means that a request via this API does only return to 
  533. the calling application when it was completely processed, the application will 
  534. be blocked until this is the case. However, this blocking only affects the 
  535. calling thread. If the application has to do other work during this time, it 
  536. must be multithreaded. 
  537.  
  538. Posting for DOS and Windows ASPI applications works, it is simulated by the 
  539. virtual ASPI driver, because existing DOS and Windows applications use that 
  540. feature. 
  541.  
  542. There can be more than one application or thread accessing the API at a time, 
  543. the VASPIDD.SYS driver is reentrant. 
  544.  
  545.  
  546. ΓòÉΓòÉΓòÉ 3.5. Test Programs ΓòÉΓòÉΓòÉ
  547.  
  548. In the distribution there are two test programs, ASPI.EXE (a DOS application) 
  549. and ASPI2.EXE (an OS/2 application), that can be used for diagnostic purposes. 
  550. They are sample programs too (see above) and their source code is included. 
  551.  
  552. Both programs, DOS and OS/2 version, use ASPI to list all SCSI host adaptors in 
  553. the system and all SCSI peripheral devices connected to them, as long as they 
  554. are not yet in use by other device managers (as it is the case with hard disks 
  555. and CD-ROM drives). For all devices found the device type, vendor name and 
  556. device name are listed. 
  557.  
  558.  
  559. ΓòÉΓòÉΓòÉ 3.6. Compatibility ΓòÉΓòÉΓòÉ
  560.  
  561. The following DOS and Windows applications were testes successfully for 
  562. compatibility: 
  563.  
  564.    1. SCSI tape backup software (with a Tandberg TDC-4100 streamer) 
  565.  
  566.           NovaStore NovaBack, version 3.57 
  567.           CorelSCSI Tape Backup for DOS, version 1.22 
  568.           CorelSCSI Tape Backup for Windows, version 1.14 
  569.           Cheyenne ARCserve/Solo for DOS, version 2.11 
  570.           GNU tar (GTAK 1.00) 
  571.           GNU tar (ASPI-TAR) 
  572.  
  573.    2. SCSI image scanning software 
  574.  
  575.           HP DeskScan for Windows, versions 1.51 and 2.0 
  576.           Calera WordScan+ for Windows (OCR software with scanner interface) 
  577.           Caere OmniPage 2.10 for Windows (OCR software with scanner 
  578.            interface) 
  579.           ImpOS/2 1.10 (image processing software with scanner interface) 
  580.            This OS/2 software cann access a DOS HP scanner device driver via a 
  581.            auxiliary program in a DOS session. 
  582.  
  583.  (These applications were tested with a HP ScanJet IIcx and the included ASPI 
  584.  compatible DOS device driver SJIIX.SYS.) 
  585.  
  586.           HighScan for Windows, version 3.1, scanner: Siemens ST-400 
  587.           Agfa PC View Color, version 1.02, scanner: Agfa Arcus Plus 
  588.           Agfa FotoLook, version 1.26E, scanner: Agfa Arcus Plus 
  589.           egsSoft Keyfile ScanServer, Scanner: Fujitsu M3096G 
  590.  
  591.  The HP DeskScan and Agfa FotoLook applications also provide a TWAIN interface 
  592.  for Windows applications and let thus other Windows applications access the 
  593.  scanner if they support TWAIN, for example, Adobe PhotoStyler, Picture 
  594.  Publisher or Corel PhotoPain (part of Corel Draw 4.0 for Windows). 
  595.  
  596.  If you use other software with this VASPI driver which is not listed here, 
  597.  please send us a short notice to allow us adding it to this compatibility 
  598.  list. 
  599.  
  600.  
  601. ΓòÉΓòÉΓòÉ 3.7. Known Problems ΓòÉΓòÉΓòÉ
  602.  
  603.      If the ASPI interface is turned off for a DOS session (via the DOS 
  604.       settings), some ASPI compatible software may still detect the 
  605.       availability of an ASPI interface. However, all further ASPI requests 
  606.       will fail in any case. 
  607.  
  608.      If you run Windows ASPI applications in fullscreen WIN-OS/2 sessions, it 
  609.       is normal if during processing of SCSI requests which take rather long to 
  610.       complete (tape rewinding, for example) the mouse pointer cannot be moved. 
  611.       This is caused by the fact that the session is blocked in the ASPI driver 
  612.       during this time. 
  613.  
  614.      The Centrol Point backup programs in the DOS (8.0, 9.0) and Windows (2.0) 
  615.       versions of the PC-TOOLS packages do not work reliably with this VASPI 
  616.       driver. While these programs can access SCSI tape devices, they may crash 
  617.       at random occasions, causing the affected DOS or WIN-OS/2 session to be 
  618.       terminated. 
  619.  
  620.  
  621. ΓòÉΓòÉΓòÉ 3.8. Test/Problem Reports ΓòÉΓòÉΓòÉ
  622.  
  623. If you should have problems using an ASPI compatible DOS or Windows software 
  624. with this VASPI driver, please send a report with the following items included: 
  625.  
  626.      version and serial number of the VASPI driver 
  627.      exact type, name, version and vendor of the affected software 
  628.      type and manufacturer of the SCSI peripheral device 
  629.      type and manufacturer of the SCSI host adaptor 
  630.      source, name and date/size of the host adaptor driver (.ADD) 
  631.      source, name and date/size of the OS/2 ASPI manager (OS2ASPI.DMD) 
  632.      operating system version (if not OS/2 2.1) 
  633.      computer bus architecture (ISA, EISA, MCA, PCI) 
  634.  
  635.  and your address, phone and fax number.