home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
devs&handlers
/
btntape
/
tapemon
/
tapemon.doc
< prev
next >
Wrap
Text File
|
1990-10-27
|
4KB
|
81 lines
**** TapeMon: a monitor program for BTNtape handler ****
**** Version 1.0 09/10/90 ****
**** Freeware by Bob Rethemeyer (DrBob@cup.portal.com) ****
**** (c) Copyright 1990 Robert Rethemeyer ****
TapeMon is an optional companion program to the BTNtape SCSIdirect
tape handler. Since the handler cannot directly inform you of what
it is doing, TapeMon, running in a separate CLI, communicates with
the handler and prints information for you. Think of it as a window
into the handler.
To run TapeMon, bring up a separate CLI window. Enter "TapeMon" or
"TapeMon name", where name is the name of the handler device process.
If you do not enter the name, the monitor will default to using "TAPE".
If you do enter the name, it must be in uppercase letters, and must
not have an ending colon.
The handler must be loaded and running for TapeMon to work. Otherwise
it prints a message and immediately quits. If you have mounted the
tape handler but not accessed the tape yet, the handler is not yet loaded,
and TapeMon will give up. To avoid this, invoke TapeMon after starting
tape access, or use "Mount = 1" in your mountlist entry.
Once the handler is loaded and running, you may invoke or terminate
the monitor at any time (but only one TapeMon may run at a time).
To terminate the monitor, enter control-C from the TapeMon CLI window,
or send a BREAK command from another CLI.
If the handler encounters a tape error, it remembers the data returned
by SENSE. When TapeMon is started, it prints the retained sense data.
So if you weren't running TapeMon at the time an error occurs, you can
still see the sense data by starting TapeMon after the fact.
The following summarizes the messages from the handler/monitor:
Opened at block x printed when the TAPE: file is opened by DOS.
x is the first block number of the file.
Closed at block x printed when the TAPE: file is closed by DOS.
x is the next available block.
Writing block x * n printed when a tape write is started by the
handler. x = starting block, n = number of blocks
Reading block x * n printed when a tape read is started by the handler.
Unsupported_pkt= x printed when DOS sends a packet which the handler
rejects. Example: 25 for the INFO command.
Rewinding printed when handler starts a tape rewind
Raw command printed when handler receives a raw command request
Last sense= x,yy retained sense data printed at TapeMon startup
Sense: io_Error= z Sense= x,yy printed when the handler issues SENSE
to the tape drive. z is the Amiga
error code returned by the scsi driver,
n is the basic sense code returned by
the drive, and yy is the extended sense.
Capacity: xxxx * yyyy = zzzzzzzz prints the capacity of the tape volume.
x is the number of blocks on the tape,
y is the size of a block, and z is the
total volume capacity in bytes.
Can't get memory for tape buffers printed for Open() attempts when not
enough memory is available for buffers.
Time for a new tape printed when EOT requester displayed
HOW IT WORKS
TapeMon works by finding the tape handler process and locating a common
data structure attached to it. The monitor waits for signals from the
handler. The handler detects the presence of the monitor and signals
it when a message needs to be printed. A break signal causes the monitor
to disconnect itself from the handler and terminate.