Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 6 of 28

PEN*KEY 6400 Computer Programmer's Reference Guide: Section 1: Getting Started, pages 33 to 40

Pages 33 to 40 of 234, from PEN*KEY 6400 Computer Programmer's Reference Guide

The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 6400

Page 33

Getting Started

SECTION 1

NORAND Utilities and Communications Communications Using NORAND Utilities These utilities support data telecommunications between a PEN*KEY 6000 Series Computer and a host computer. Refer to the NORAND Utilities paragraph, in the Communications and Device Support section, for a description of the NORAND Utilities.

Creating a Host Download Include File Most of the communication options for performing an initial program load require a download include file to be used on the host computer. To create a download include file, proceed as follows: 1. Create a download list file. A download list file contains the names of the files to be sent to the 6400 Computer. Each line in the file specifies one name. The file names may include path information so that all the files need not be in the same directory on the host computer. However, the file is transmitted to the 6400 Computer without the source path information, and placed in the current directory of the 6400 Computer. To specify a destination path or to rename a file, on the 6400 Computer, use a line with the following format: “newname=oldname” This causes the file “oldname” to be read from the PC, then transmitted to the 6400 Computer with the name “newname”. Both “oldname” and “newname” may include path information. A sample download list file: CONFIG.SYS AUTOEXEC.BAT 6X00DOS\PC4800.SYS MYAPP.EXE

2. Create the download include file by executing the following command: IPLFMT.EXE <list file> <include file> where: <list file> is the name of the download list file created in step 1. <include file> is 6400IPL.INC. This file is created by IPLFMT.EXE. " NOTE:

IPLFMT.EXE is included in the Tool Kit.

Options: –r Allows creation of subdirectories when needed. An output directory can be specified. @ is (optionally) included to indicate that filename is an argument file, containing names of files to be checked. A valid argument file for CRC32.EXE has the same format as an argument file for the IPLFMT.EXE program. A valid argument file for IPLFMT.EXE has the same format as an argument file for the CRC32.EXE program. PEN*KEYR 6400 Programmer’s Reference Guide

1-17

Page 34

Getting Started

SECTION 1

NPCP Network NPCP is the NORAND Portable Communications Protocol. This protocol is supported by the NORAND 492x and 498x communication controllers. 1. Create a download include file, as described in the preceding paragraphs. 2. Create a 4920 boot disk, if necessary. The only file on a 4920 boot disk is a download include file. The include file is copied to the DOWNLOAD subdirectory of the 4920. " NOTE:

4000 Series applications are copied to a BOOT subdirectory. PEN*KEY 6000 Series applications are copied to the DOWNLOAD subdirectory.

3. Create a 4980 Boot Disk, if necessary. Place the 4980 System Files on the 4980 Boot Disk in the same manner as the 4000 Series Applications (using the 4980 Boot Tool Kit, for example). Execute the following commands to place the download include file on the disk: MD A:\DATA COPY <include file> A:\DATA NCDIR.EXE A:\DATA " NOTE:

NCDIR.EXE is included in the 4980 Boot Tool Kit.

TTY TTY is an industry standard protocol with a NORAND implementation, supported by the 4920 Communication Controller. "

Create a 4920 boot disk as described in the preceding paragraphs for the NPCP Network.

DOS Device Drivers The following are DOS drivers, for power management, scanning, etc. Table 1-2 DOS Device Drivers

1-18

Drivers

Description

64APMOEM.EXE 641223.EXE BIOS.EXE CLOCK.EXE DOSGAS.EXE ELANAPM.EXE ELANCFG.EXE ELANUMP.SYS IRDAPDRV.EXE MISCTSR.EXE NORDOSPM.EXE PC4800.SYS PRDRV.SYS RAMDFMT.EXE

DOS Norand OEM APM extensions driver DOS Scanner driver Version of BIOS DOS Clock bug patch Battery indicator APM BIOS installation for DOS ELAN Configuration Utility DOS IrDA Printer Driver DOS APM driver Standard DOS 4800 Series Printer driver Standard DOS Printer driver To create RAM drive

PEN*KEYR 6400 Programmer’s Reference Guide

Page 35

Getting Started

SECTION 1

Utility Programs 6400.BAT This utility is used to prepare for a software update. It creates a RAM drive (960 Kb in size), sets the path=C:\, runs intersvr A: C: D:, then switches to drive D:. 64APMOEM.EXE Provides APM interrupt extensions to the APM 1.2 specification, that are unique to Intermec. These extensions include: " Accessing the non-volatile parameter storage area (e.g., location of unit serial number and other stored data). " Getting or setting the keyboard mode, type, and version. BIOS.EXE Displays the version level of the BIOS currently in the 6400 computer. BOOTDRV.COM This application is specifically designed for use in batch files that are required to know which drive is the default drive when the system was first booted. It returns an error level indicating which drive is the boot drive: 1=A, 2=B, 3=C, . . .

This program performs two simple DOS calls: mov int mov mov int ax, 3305h 21h al, dl ah, 4Ch 21h

; Get boot drive ; DL = boot drive ; errorlevel = boot drive ; Exit (errorlevel);

Batch file example: BOOTDRV.COM SET BootDrive=A: IF ERRORLEVEL 3 SET BootDrive=C: IF ERRORLEVEL 4 SET BootDrive=D:

CDSVC1A.EXE This utility provides the PC card and socket services for Proxim’s 2.4 GHz radio driver: RL2PCM.COM. It is intended for use only with RL2PCM.COM and NOT a general purpose PCMCIA card and socket driver. Command line switches: None. CLOCK.EXE This patch driver corrects the DOS clock after a suspend/resume sequence, where the actual time may be out of sync with the DOS time. Command line switches: None. PEN*KEYR 6400 Programmer’s Reference Guide

1-19

Page 36

Getting Started

SECTION 1

DELAY.EXE Usage: DELAY /n where n is the number of seconds to delay.

This file serves four functions: " Displays a message to the screen (like the Echo command). " Waits for some amount of time to expire before continuing (like a Sleep command or DOS 6 Choice command with a timeout specified). " Pauses execution of the system until a key is pressed (like the Pause command). " Returns an error level based on which key, if any, was pressed (like the DOS 6 Choice command). The first three of these functions can be performed even when DELAY is loaded as a device driver. Since the error level concept does not apply to CONFIG.SYS processing, the fourth function applies only to command line (or batch file) execution. To perform each of these functions: " To display the message Press any key to continue . . . , no command line parameters are required. To display one or more different messages, supply the new messages in double quotes on the command line. Each quoted text string displays on a separate line. A null message (“”) can display a blank line. To keep the cursor positioned immediately following the last character displayed, do not supply the trailing quote (”). To simply display a message without waiting for either a timeout or a key press, specify a delay timeout of zero (/0). " To force DELAY to exit after a period of time has elapsed, even if no key has been pressed, specify a “/nnnn” switch on the command line anywhere, even within quoted text. The value of nnnn is the decimal value representing the hundredths of seconds that must elapse before DELAY automatically exits. The maximum delay is about 640 seconds (or about 10 minutes). " No command line parameter is required to cause this program to wait for a key press. DELAY always exits whenever a key is pressed, even if it is waiting for time to elapse first.

1-20

PEN*KEYR 6400 Programmer’s Reference Guide

Page 37

Getting Started

SECTION 1

DELAY.EXE Error Levels When DELAY is executed from a command shell (as opposed to being loaded as a device driver) the error level that is set, upon return to the calling function, is based on the key (if any) that was pressed prior to exiting. The return value is specifically geared to make it easy to determine which numeric key was pressed. Table 1-3 DELAY.EXE Error Levels

Error Level

Key Pressed

0 1 2 3 4 5 6 7 8 9 10 11 12 to 254

“0” “1” “2” “3” “4” “5” “6” “7” “8” “9” “:” “;” The values returned for these keys consist of the key value minus 30h. No key was pressed, the time expired first

255

Simple Examples: Pause Echo message Sleep 10 seconds Choice message

Echo message two Pause

= = DELAY.EXE = = DELAY.EXE /0 ”message” = = DELAY.EXE /1000 = = DELAY.EXE ”message” IF ERRORLEVEL 3 GOTO InvalidDigit IF ERRORLEVEL 2 GOTO PressedTwo IF ERRORLEVEL 1 GOTO PressedOne IF ERRORLEVEL 0 GOTO PressedZero = = DELAY.EXE ”message two” ”Press any key to continue . . . ”

ETHDRV.EXE Command line switches: None

HIMEM.SYS Add /machine:2 for A20 gating to be performed by port 92h. Refer to a DOS manual, or DOS help, for additional information. PEN*KEYR 6400 Programmer’s Reference Guide

1-21

Page 38

Getting Started

SECTION 1

ISRAMDRV.COM This simple program returns an error level that answers the question, “Do I have a RAM drive?” If the error level is set to zero, then a RAM drive exists. This command is specifically designed for use in batch files that have a requirement to know whether a RAM drive has already been formatted. Batch file example: ISRAMDRV.COM IF ERRORLEVEL 1 GOTO NoRamDrive IF NOT ERRORLEVEL 1 GOTO RamDrivePresent

LSL.COM Usage: LSL [/?] [/U] [/C=[path\]filename]

Command line switches: /? Displays a help screen /U Removes the resident program from memory /C=[path\]filename Specifies a configuration file to use (default is NET.CFG) MISCTSR.EXE This utility provides the following features, for use on your 6400 computer. Command line switches:, A Enables the reset annunciator line at program termination, Fn Select annunciator character set n=0 default annunciator character set n=1 alternate annunciator character set, K Enables get character CPU idle, L Enables legacy INT 15h function AX=42FFh, Pn Enable/Disable annunciator panning n=0 disables annunciator panning n=1 enables annunciator panning, Sn Enable/Disable scan handle trigger n=0 disables scan handle trigger n=1 enables scan handle trigger, T Enables periodic DOS timer reset RTC, Wn Select window key set n=0 default window key set n=1 alternate window key set

For additional information relating to annunciator character set selection, refer to the Fonts Rows and Columns paragraph, in the Communications and Device Support section of this publication. " NOTE:

Certain programs (such as FTP’s TN.EXE) use the keyboard ports 60h and 64h directly. The W option uses a different set of scan codes for the windowing arrow keys, so this windowing function works properly.

" NOTE:

The annunciators consume various characters in the font table. By using the F option, a different set of characters from the font table are consumed. If a character you need is consumed by the default set, try the alternate set.

1-22

PEN*KEYR 6400 Programmer’s Reference Guide

Page 39

Getting Started

SECTION 1

MMBFLAG.COM The MMBFLAG.COM program satisfies a couple of batch file needs: "

You can request the boot flag value, by running MMBFLAG.COM, without a parameter. The returned value indicates the current boot drive. This flag keeps track of the default boot drive and serves as an indicator of Master Mode Booting. The following example shows how you could request the boot flag value: MMBFLAG.COM

This command merely places the value into the DOS Errorlevel flag. To retrieve the boot flag value, examine the DOS Errorlevel flag. Unfortunately, the Errorlevel value contains both the reserved value and the value of the boot flag. To determine the default drive, subtract 128 from the Errorlevel flag value and compare it with the Boot Flag values in the table below. "

You can also change the default boot drive by supplying a simple command parameter, as follows: MMBFLAG.COM n where n is the desired boot flag value (range = 0–7). Use the following table to determine what value of n to supply. Table 1-4 MMBFLAG.COM Return Values

Boot Flag Value

Meaning

128 7 6 5 4 3 2 1 0

Reserved Drive H is the default boot drive Drive G is the default boot drive Drive F is the default boot drive Drive E is the default boot drive Drive D is the default boot drive Drive C is the default boot drive Drive B is the default boot drive Drive A is the default boot drive

PEN*KEYR 6400 Programmer’s Reference Guide

1-23

Page 40

Getting Started

SECTION 1

MODE.COM Refer to a DOS manual, or DOS help, for details. ODIPKT.COM This is a shim that translates packet driver type calls from a protocol stack to ODI type calls to LSL and an ODI driver. In other words, it allows you to use a packet driver type protocol stack on top of an ODI driver. There are many ‘odipkt’ type shims available from many different vendors. " NOTE:

ODIPKT.COM is FTP software PC/TCP packet driver for ODI v2.3, CopyrightE 1986 - 1993 by FTP Software, Inc. All rights reserved.

Usage: ODIPKT [?] [unl] [SINT=xx] [MLID=name] [FRAME=frame-string]

Command line switches: ? Displays a help screen unl Causes ODIPKT to be unloaded xx The software interrupt number (range: 60–80 hex, default: 60) name The MLID type: (values are case sensitive) ETHERNET_II or ETHERNET_SNAP or TOKEN-RING_SNAP Default: ETHERNET_II or TOKEN–RING_SNAP (first found) frame-string The media type: (values are case sensitive) (ETHERNET_II or ETHERNET_SNAP or TOKEN-RING_SNAP) REBOOT.COM, Warm Booting Utility This utility is included in the Tool Kit, and performs a warm reset when run. RL2PCM.COM Executing without parameters, installs the program. Usage: RL2PCM [?] [U]

Command line switches: ? Displays a help screen, showing these command line switches U Removes the resident program from memory

1-24

PEN*KEYR 6400 Programmer’s Reference Guide