SECTION 2
Supporting DOS Applications
2-18 PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide
DOS NPCP Printing: PC4800.SYS
PC4800.SYS is a DOS device driver that allows DOS and PL/N applications
written for the 6200 and 6300 Computers to print to NORAND 4810, 4815, and
4820 Printers, using the NPCP protocol.
Driver Installation and Configuration
Required CONFIG.SYS Entry
To install the DOS driver for the 4815 or 4810 Printers, place the following
statement in the CONFIG.SYS file and reboot. If PC4800.SYS is not in the root
directory, be sure to include the path.
device=PC4800.SYS LPT1 1 /I1
NP4800 is the default name for the device driver that opens the device. By using
PC4800.SYS, a specific device driver is specified.
You can override this by adding a command line parameter (
LPT1
), as shown in
the preceding statement. The driver is then accessed via this name when the
device is opened. You can call it whatever you want (except PRN), using up to
eight characters. You can add a second parameter that indicates the
communications port number to use for output:
1
= COM1,
2
= COM2, etc.
To set the communications port number, specify the device name. Parameter
order is important. The default port is COM1. By default, PC4800.SYS supplies
only the DOS device driver interface to NPCP printers.
To support PL/N applications, INT 17h interface must also be installed. To do so,
add an /I switch to the command line, as shown in the preceding statement. The
digit that appears after the I" refers to the LPT port that gets redirected to the
device driver at the INT 17h prompt. For example, if a 1" is specified, all INT
17h calls for LPT1 are redirected to the PC4800.SYS device driver.
Required AUTOEXEC.BAT Entry
In addition to loading PC4800.SYS from the CONFIG.SYS file, also place the
following line in the AUTOEXEC.BAT file on the boot drive. This line installs
the NORAND API kernel and is necessary for the correct functioning of the
driver for PL/N applications:
4000API.EXE /c3
and for nonĆPL/N applications:
4000API.EXE /c3 /pc /10 /14 /16
where: /c3 means treat COM3 as COM3, not COM1
/pc is PC emulation
/10 /14 /16 means ignore INT 10, INT 14, and
INT 16 interrupts.
Functionality and Usage
Intermec Technologies Corporation supplies PL/N and C standard printer
routines that handle critical errors and the printing of text to Norand printers.
This information is for those who might want to create their own print routines.
The DOS driver for the 4815 and other NPCP printers must be opened before it
can be used. Use the correct open call, for the language being used. For
example, there are two open calls available:
Open Mode Function
Description of Function
1 Opens a device (file) (only if existing)
Checks for the existence of the device and returns
an error if it is not there.
2 Creates files when opening (not existing)
Creates a file upon opening.
2. DOS
Applications