home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Instructions for
- MAPLPT -- LPT to COM port mapper
- Copyright (C) Patrick Swayne 1988. All Rights Reserved.
-
- ** Introduction
-
- MAPLPT is a program that allows you to use a serial printer on an
- IBM compatible computer. It maps output intended for a parallel
- (LPT) port to one of the serial (COM) ports. Like MODE, it in-
- stalls a portion of itself into memory as a resident (TSR) pro-
- gram to perform the mapping. It goes beyond MODE, however, in
- that it supports all forms of handshaking likely to be required
- by a printer, and it supports baud rates to 38,400.
-
- MAPLPT was written by a user of Zenith computer equipment, which
- has the ability to map an LPT port to a COM port with handshaking
- support built into the ROM BIOS. This capability was sorely
- missed when I aquired some non-Zenith equipment, so I wrote
- MAPLPT originally for my own benefit, and it has served me well.
-
- ** Distribution
-
- This program is distributed under the "Shareware" concept. Feel
- free to use this program and give copies to others, as long as
- you include this documentation with the program, and as long as
- you do not modify either the program or this documentation.
-
- You may not sell this program for any amount, but you may charge
- a nominal fee (e.g. $5.00) for the disk on which it is distribut-
- ed. If you are a shareware distributor, it is recommended that
- you combine this program with other utilities on a disk to pro-
- vide your customer a greater service.
-
- If you feel that this program is of value to you, please register
- your copy by sending a contribution of $15 to
-
- Patrick Swayne
- 155 Baker St.
- Coloma, MI 49038
-
- Registered users will receive a disk containing a copy of MAPLPT
- without the "Please register" message, and a copy of the assembly
- source code for MAPLPT.
-
- Warranty
-
- This program is provided AS IS without any warranty, expressed or
- implied, including but not limited to fitness for a particular
- purpose.
-
- Disclaimer
-
- In no event will Patrick Swayne be liable to you for any damages,
- including any lost profits, lost savings, or other incidental or
- consequential damages arising out of the use of or inability to
-
-
- 1
-
-
-
- use this program, even if Patrick Swayne has been advised of the
- possibility of such damages, or for any claim by any other party.
-
- ** Operation
-
- To use MAPLPT, you must first copy MAPLPT.COM from this disk to
- your system disk, in the root directory or a directory pointed to
- by your PATH description. The syntax for operating MAPLPT is
- nearly identical to the one for MODE, when it is used for mapping
- an LPT port to a COM port. The differences are that there are
- more items you can specify, you do not use a colon (:) after the
- LPT port designation, and only one command line is used to map
- the port and set the baud rate and other settings. To use
- MAPLPT, enter a command in this form.
-
- MAPLPT LPTn=COMn,baud,handshake,parity,data bits,stop bits,time out
-
- Here is a description of the command line arguments. The n in
- LPTn and COMn is a number that designates the ports you want to
- use, as in LPT1 or COM2. The defaults, if you do not specify
- anything, are LPT1 and COM1. MAPLPT supports printer ports LPT1
- to LPT4 (regardless of how many you actually have), and serial
- ports COM1 and COM2. It also supports COM3 and COM4 if their
- port addresses are recorded at memory locations 40:2 and 40:3
- (hex).
-
- The baud rates supported are 110, 150, 300, 600, 1200, 2400,
- 4800, 9600, 19200 and 38400. The default baud rate is 9600.
-
- The handshaking modes supported are
-
- RTS[-] -- hardware handshaking via the RTS/CTS line. Include the
- - after RTS if negative polarity is used to indicate ready.
- DTR[-] -- hardware handshaking via the DTR/DSR line. Include the
- - after DTR if negative polarity is used to indicate ready.
- CMP -- compatibility mode. Both the RTS and DTR lines monitored.
- ETX(burst) -- ETX/ACK software handshaking. An optional burst
- count from 1 to 32 can be specified in parentheses, as in
- ETX(20). The count you specify is multiplied by 32 to ob-
- tain the actual count used. The default count is 1 (making
- an actual count of 32). Diablo printers that use ETX/ACK
- handshaking will print bi-directionally if you specify the
- largest burst count the printer can handle.
- XON -- XON/XOFF software handshaking. This kind of handshaking
- is also called DC1/DC3.
- NONE -- no handshaking is used.
-
- The default handshaking mode is RTS positive. You should consult
- your printer manual to determine the handshaking mode(s) it re-
- quires.
-
- Parity checking is specified by indicating E for even parity, O
- for odd parity, or N for no parity. The default is no parity.
-
- You can specify 7 or 8 data bits. The default is 8.
-
-
- 2
-
-
-
- You can specify 1 or 2 stop bits. The default is 1.
-
- The time out can be any number from 1 to 255. It indicates ap-
- proximately the number of seconds before MAPLPT returns a time
- out error if the printer should signal that it is not ready for a
- long time. The default time out value is 20.
-
- As with MODE, you can leave out any of the command line arguments
- by typing a comma in its place. Here are some sample MAPLPT
- command entries.
-
- MAPLPT ,,DTR
-
- In this example, all of the defaults are used except for the
- handshaking, which is set to DTR positive.
-
- MAPLPT LPT1=COM2,,,,,,60
-
- In this example, LPT1 is mapped to COM2, and the time out is set
- to 60. The defaults are used for the other settings.
-
- MAPLPT ,4800,RTS-,,,,40
-
- In this example, the baud rate is set to 4800, the handshaking is
- set to RTS negative, and the time out is set to 40. The defaults
- are used for the other settings.
-
- MAPLPT installs its resident portion into memory the first time
- you run it after booting your operating system. If you run it
- again later, it will make any changes required to the resident
- part. In addition to the settings described above, you can use
- these commands.
-
- MAPLPT D To disable LPT to COM mapping.
- MAPLPT To enable LPT to COM mapping (using current set-
- tings).
- MAPLPT U To uninstall MAPLPT. You can only uninstall if
- MAPLPT is the last TSR loaded.
-
- Each time you enter a MAPLPT command (except for the D or U com-
- mands), MAPLPT echoes the current settings so that you can verify
- that they are correct. For example, if you had just entered the
- third sample command line, MAPLPT would print
-
- LPT1=COM1,4800,RTS-,N,8,1,40
-
- You can take advantage of this feature to check the current
- MAPLPT settings by entering MAPLPT with no argument. If you
- enter invalid information in a command line, MAPLPT will print
-
- Error in command line.
-
- It will accept any correct information up to the point of the
- error, and print the current settings so that you can see what
- was accepted.
-
-
- 3
-
-
-
- If you forget the command syntax for MAPLPT, and you do not want
- to read these instructions again, just enter
-
- MAPLPT ?
-
- and MAPLPT will print a screen of instructions.
-
- Using Printer Software
-
- Once you have installed MAPLPT, any software that you have that
- uses your printer should be configured to use the LPT port you
- have mapped, not COM1 or COM2. If your LPT port is LPT1, the
- software may also be configured to use PRN. However, you may
- find that printing via LPT1 is faster than printing via PRN.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 4
-
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- The Public (Software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. The P(s)L cannot de-
- bug programs over the telephone.
-
- Disks in the P(s)L are updated monthly, so if you did not get
- this disk directly from the P(s)L, you should be aware that
- the files in this set may no longer be the current versions.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 1,900+ disks in the library, call or write
-
- The Public (Software) Library
- P.O.Box 35705 - F
- Houston, TX 77235-5705
- (713) 665-7017
-