home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / hardware / 23805 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.8 KB

  1. Path: sparky!uunet!portal!cup.portal.com!DrBob
  2. From: DrBob@cup.portal.com (Robert A Rethemeyer)
  3. Newsgroups: comp.sys.amiga.hardware
  4. Subject: Re: SCSI Eject Command?
  5. Message-ID: <74495@cup.portal.com>
  6. Date: Thu, 28 Jan 93 02:02:23 PST
  7. Organization: The Portal System (TM)
  8. References:  <1993Jan24.030600.9590@mnemosyne.cs.du.edu>
  9. Lines: 30
  10.  
  11.  
  12. Michael McCulloch writes...
  13. >I have a friend who just purchased a PLI 2.88 MB SCSI-based floppy
  14. >drive. Formatting, reading, and writing are working just fine, however,
  15. >the drive has no manual eject button.
  16. >
  17. >Does anyone know exactly how to add a script or modify a driver to
  18. >provide the eject command in software? Is there a standard removable
  19. >media eject command for SCSI devices?
  20.  
  21. There probably is a standard command, but it would help to have the
  22. drive docs to be sure of what it is.  My guess is that SCSI operation
  23. code 0x1B would do it.  For tape drives, this code is "Load/Unload",
  24. and for disks it is "Start/Stop".  For tapes it will cause the cart
  25. to be ejected when unload is specified.  The SCSI-floppy may also
  26. interpret it that way.
  27.  
  28. The complete command format is (in hex):  1B 01 00 00 XX 00
  29. where XX should be 00 to unload (eject), or 01 to load.
  30. The 01 in the 2nd byte releases the SCSI bus immediately (a good idea).
  31.  
  32. As for a program to do this, a simple program to send the command
  33. via the scsi-direct interface would do it.  I recall that one of
  34. the CBM folks whipped one up and posted it on the net.  I don't
  35. think I have a copy of it, maybe someone else (or the CBM fellow) does.
  36.  
  37. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  38.   Bob Rethemeyer                     //"A bug crossed a learned paper.
  39.     DrBob@cup.portal.com   -or-     //  Might not we too be crossing things
  40. ..!sun!portal!cup.portal.com!DrBob //   We cannot read?" - Francis Schaeffer
  41.