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 3 of 7

6220 Hand-Held Computer Technical Reference, pages 21 to 30

Pages 21 to 30 of 70

The original document is the PDF (358 KB). 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 6220

Page 21

SECTION 2

DOS Device Drivers

RAM Drive RAMDFMT.EXE creates a RAM Drive on the HHC. This RAM drive is a block of system memory that is treated as DOS drive C:. The data stored on the RAM drive is maintained as long as power is supplied to the system and the drive is not reformatted. When a RAM drive is created, this results in less extended memory available for programs. No additional conventional memory is required for the RAM drive. Because the support for accessing the RAM drive is embedded in the DOS BIOS, no additional drivers need to be loaded. The extended memory test (with the corresponding boot messages) reserves memory for the RAM drive. Only one RAM drive can be created. The size selected for the RAM drive represents the total memory required by the RAM drive, not the free space that is available on the drive. DOS file system overhead reduces the specified memory by the size of the file allocation table (FAT) and root directory created. If CONFIG.SYS loads HIMEM.SYS and sets DOS=HIGH, the first 64 KB of extended memory is used for the High Memory Area. As a result, the maximum size of the RAM drive is 64 KB less than total extended memory. The following switches are allowed for RAMDFMT.EXE. All values are in decimal. Specify either size or address, but not both. ća address of RAM disk (in kilobytes) ćd drive number (0 = A, 1 = B, ... etc.) će number of directory entries ćs size of RAM drive (in kilobytes) ćh help " NOTE:

Reboot the HHC after the RAM drive is created (or altered), to make the change effective.

If a communications option other than Accessory Card is selected, the Norand Utilities program automatically creates a RAM drive if one does not already exist. If the accessory card option is selected, the startup files on the card must create a RAM Drive if one is needed. For a system with 6 MB (or more) of total memory, Norand Utilities creates a RAM drive of size 3 MB plus 960 KB, that is, 64KB less than 4MB to ensure room for the High Memory Area. For lower system RAM capacities, only 1 MB plus 64 KB of RAM is reserved for conventional use and the remainder is allocated to the RAM drive. The Norand Utilities program provides a menu that allows the RAM drive to be formatted in 64 KB increments. The RAM drive created by Norand Utilities allocates 128 directory entries, that is, it specifies će128 as a parameter to RAMDFMT.EXE. When NPCP, TTY, NRInet, TFTP, TCP/IP bootp, or Novell communication options are used, another choice exists for creating a RAM drive. If the RAMDFMT.CTL file is downloaded, Norand Utilities executes the program RAMDFMT.EXE to create a RAM drive. RAMDFMT.CTL is a text file that must contain the commandĆline parameters for RAMDFMT.EXE. For example, if RAMDFMT.CTL contains the ćs2048 line, then Norand Utilities executes ćs2048", which creates a 2 MB RAM drive. When processing RAMDFMT.CTL, if RAMDFMT.EXE cannot be executed or returns and error, the communication session fails with error 0." Also, if the parameters in RAMDFMT.CTL cause the RAM drive to be removed (such as the communication session fails with error 0." 6220 Hand-Held Computer Technical Reference

2-7

Page 22

DOS Device Drivers

SECTION 2

IrDA Printer The IrDA Lite device driver, NORIRDA.SYS, provides primary DOS character driver support for IrDA printers. Ensure NORIRDA.SYS is in the \Drivers diĆ rectory on the system boot drive. These entries are required in CONFIG.SYS: NORIRDA.SYS [–n:driverName] [–d:n] [–r:n]

–d:n Specifies the disconnect time (in seconds) requested during negotiation, where is 3, 8, 12, 16, 20, 25, 30, or 40. The parameters for this switch are cumulative and can add any or all of these disconnect times to the default. The two systems negotiating select the largest common value. ćn:driverName

(Optional) Specifies the new name to which this character device driver should respond. The default is IRDAPDRVR. ćr:n Specifies the number of seconds discovery retries that are done at the first DOS write command by the driver. The default is five seconds.

LAN Communications MININET.EXE provides communications over Local Area Networks (LANs) and automatically switches between supported speeds (500 KB, 460 KB, 115.2 KB) to locate a working speed. For details, see page NO TAG. The default baud rate is 500 KB, but automatically switches to the secondary speed if necessary. If this switch is not used, the default baud rate is used, otherĆ wise the speed can be set to any of the following values: " 5000 500 KB (default) " 4600 460 KB " 1152 115.2 KB (secondary default) To load MININET, use this format to add a command line to AUTOEXEC.BAT: MININET.EXE

[–s#] [–c#] [–t#]

All parameters are optional, as designated by the brackets [ ]. Replace with a value appropriate for each parameter, as described below: ćc# Sets the default COM port to be used. " NOTE:

Supplying the –c# switch prohibits an application from selecting a COM port via the NCB CALL establishing a session. This makes it possible to force which COM port is to be used.

ćs# ćt#

Sets the primary speed of communication. Sets the secondary baud rate to automatically toggle between the primary and secondary baud rates, depending on the speed of the host. A value of zero indicates that only the default baud rate is used (set with ćs switch). Any of the baud rate values listed previously are valid for this switch. If neither ćs# or ćt# are set, MININET.EXE autoselects a baud rate from the three valid speeds. If only ćs# is set, MININET toggles the baud rate selection between the reĆ quested speed and 115.2 KB. If both ćs# and ćt# are set to valid speeds, MININET toggles the baud rate selecĆ tion between those two values. If ćt# is set to zero, MININET sets the baud rate to the value set by ćs# or to the default value of 500 KB. 2-8

6220 Hand-Held Computer Technical Reference

Page 23

SECTION 2

DOS Device Drivers

NPCP Printer The DOS device driver, PC4800.SYS, provides NorandR Portable CommunicaĆ tions Protocol (NPCP) printing support for DOS and PL/N applications written for the handĆheld computer. This includes printing to Norand 4800 and 6800 SeĆ ries Printers using NPCP.

Installation and Configuration Required CONFIG.SYS Entry PC4800.SYS is installed as a device driver in the CONFIG.SYS file. EXAMPLE:

device=pc4800.sys [device name [port number [/Ilpt]]] device name The name to use for this instance of the device driver. This name opens the device. It can be anything except PRN, and can be up to eight characters long. The default name is NP4800. port number The COM port used for output by the driver. Valid values: 1=COM1, 2=COM2, etc. Default: COM1

" NOTE: EXAMPLE 1:

/I

Redirects LPT output to the BIOS interrupt 17h API, and is required to support PL/N applications.

lpt

The LPT port to be redirected. Valid values: 1=LPT1, 2=LPT2, etc. By default only output directed to the specified device name is captured.

The order of the command line parameters is important. For example, you must specify a device name if a port number is specified. Redirect LPT2 to COM1: However, do not redirect any LPT2 output at the interrupt 17h (BIOS) interface. device=pc4800.sys LPT2 1 install=4000api.exe ... { refer to 4000API.EXE for switches }

EXAMPLE 2:

Redirect all LPT1 output to COM2. device=pc4800.sys LPT1 2 /i1 install=4000api.exe ... {refer to 4000API.EXE for switches}

If PC4800.SYS is not in the root directory, be sure to include the path. Be consisĆ tent; if NORIRDA.SYS is located in the \Drivers directory, so should PC4800.SYS. " NOTE:

The /I switch is for PL/N application support. Do not use this switch for non-PL/N applications. The interface provided is not 100 percent PC-compatible.

Required AUTOEXEC.BAT or CONFIG.SYS Entry For additional information describing how to load PC4800.SYS, see page 3-2. Normally, 4000API.EXE is loaded in CONFIG.SYS using: install=4000API ... {refer to 4000API.EXE for switches}

However, if it needs to be loaded high, load it in AUTOEXEC.BAT.

6220 Hand-Held Computer Technical Reference

2-9

Page 24

DOS Device Drivers

SECTION 2

Functionality and Usage Intermec Technologies Corporation supplies PL/N and C standard printer rouĆ tines that handle critical errors and the printing of text to Norand printers. The following information is provided to create custom print routines. Open PC4800.SYS before using it. For example, in the C programming lanĆ guage, use fopen(). Use the correct open call for the language used, to write to the device. Also, the open call used should return an error if the device does not exist. Some open calls create a file if the device driver is absent. To write to the device, use any appropriate output function that can be directed to the device. For example, in C programming, use fprintf(). Install a critical error handler that processes errors from the printer. The printer driver returns only not ready" errors to DOS for compatibility with the standard PRINT program supplied with DOS. The extended error can be reĆ trieved by bypassing DOS and calling the driver directly from the error handler. Ioctl calls (DOS Function AH = 44h, AL = 02h) are supported by the device drivĆ er (see a DOS reference manual). Calls require the printer device handle numĆ ber to be loaded into register BX, a data item with the following structure pointed to by DS:DX, and the number of bytes to be read in register CX. struct ioargs { far *unsigned char ioctl_cmd; far *unsigned char ioctl_buf; };

The following commands may be pointed to by the ioctl_command field for execuĆ tion by the driver: ONLINE = 2 STATUS = 3 GET DEVICE FEATURES = 4 SELFTEST = 5 RESET = 6 GET CURRENT CONFIGURATION =7 XTENDED ERROR = 255

When the ioctl call is made, data pointed to by the ioctl_buf is returned to the buffer for the number of bytes specified in register CX. The first byte of the reĆ turned data represents any error encountered during the call. If the call was successful, this byte is set to zero. If unsuccessful, this byte represents the exĆ tended error. Refer to printer documentation for information detailing the forĆ mat for the rest of the data. " NOTE:

" NOTE:

" NOTE:

2-10

Open and close the printer driver for each report transaction with the printer to take advantage of the NPCP line-loss detection features. Applications should status (ioctl 3) the printer after the last line of a report or a series of reports are sent to the printer to ensure that all lines were printed successfully. The printer driver is multi-tasking. If the application needs to take full advantage of this feature, it must enable time slicing through the appropriate call to INT 15h (refer to the 4000API documentation). If time-slicing is not activated, the last line buffered by the driver is not sent to the printer until the device is closed or an ioctl status call to the printer is made. Perform an ioctl status call before all closes to ensure the driver print buffer is sent to the printer successfully, since DOS closes to character devices do not perform output flushes as part of the close operation. The driver flushes the buffer upon a close, but no error is returned if the flush is unsuccessful.

6220 Hand-Held Computer Technical Reference

Page 25

SECTION 2

DOS Device Drivers

PC Card Services NORMOD.SYS is a PC Card services client that handles identification and initĆ ialization of serial device PC Cards (such as modems and radios) and is installed in the CONFIG.SYS file, as follows: DEVICE=NORMOD.SYS [–A] [–Bd] [–Cx] [–Dx x x] [–Ix] [–Nname] [–R] [–S] [–V]

EXAMPLE:

ćA

Allows suspend requests, even if an open session is present. Normally, NORMOD rejects suspend requests when an application has an open connection.

ćBd

Defines a battery cutoff level in millivolts. If a voltage reading for your main battery is below this level, then open requests fails. This protects against loss of data when power fails because of low batteries.

–B610 sets the cut off at 610 millivolts.

ćCx EXAMPLE:

Overrides the default COM port. The default is COM3.

–C4 defines using COM4 instead of COM3.

ćD x x x Defines the timeout used for a particular manufacture's code. If a modem card has an unreliable ready line, this switch could define a timeout value instead of the application examining the ready line. The first two hexadecimal numbers must match both the code and the information values returned by a GetConfigInfo call before the third value is used as the timeout value. The timeout value needs to be specified in tics (tic=1/18th of a second). EXAMPLE:

“/D 16b 21 20” sets timeout to 20h tics, about 1.8 seconds. The “16b 21” identifies the Ericsson PIA radio.

ćIx EXAMPLE:

Changes the interrupt request level to be used. The x parameter should be supplied in hexadecimal. The default value for x is IRQ 5.

–I7 uses IRQ 7 instead of IRQ 5.

ćNname Changes the installed device name. The default name value is MODEM. EXAMPLE:

–Ncom4 sets the device name to COM4 instead of MODEM. Nname can be any valid 8-character name. However, do not use a name that is the same as the root name of any other current or future existing file or directory. Once a device name is defined, any files or directories with the same root name cannot be accessed.

ćR

Allows a card to be left powered on, with ringĆindicate (RI) enabled during suspend. RI awakens terminal.

ćS

Saves UART registers when a suspend occurs, and restores upon resume.

ćV

Turns on 12Ćvolt VPP whenever a modem session is open.

6220 Hand-Held Computer Technical Reference

2-11

Page 26

DOS Device Drivers

SECTION 2

Pen Calibration CALIB.EXE is the DOS Pen Calibration utility. It performs calibration of the pen interface for the handĆheld computer. Calibration aligns the location of the cursor to the same location where a finger or pen is placed on the touch screen. The handĆheld computer comes with deĆ fault settings normally acceptable for most applications. However, some applicaĆ tions, such as signature capturing, may require a calibration adjustment to comĆ pensate for variations in touch panel alignment and user preferences.

Configuration Configuration settings are stored in CMOS. If CMOS contains invalid informaĆ tion, the program displays the calibration screen, regardless of the existence of the calibrate commandĆline option. CALIB.EXE is a DOS application program and is invoked from AUTOEXEC.BAT or from the DOS command line. The appropriate mouse driver must be installed. The driver contains extensions to the standard Mouse API which provides digitizer information, screen resolution, and raw coordinate points, required for implementing CALIB.EXE.

Required Calibration Files MOUSE.COM CALIB.EXE N6220.BGI

(pen driver) (calibration utility) (BGI driver)

" NOTE:

Always load the pen driver before the pen calibration utility, as shown above.

" NOTE:

For information about using the BGI driver, see page 2-1.

Operation CALIB.EXE begins calibration by placing one of four targets at a fixed location on the screen and waiting for three pen presses in the center of the target. Apply moderate pressure while pressing the target. Light taps, too much pressure, finĆ gers, or other objects touching the screen generate incorrect results. The unit beeps after each successful press. If a beep is not heard, lift and press again. When three good data points are acquired, the next target is displayed. When data for all four targets is acquired, the program displays a screen showĆ ing the calibration results. Check the match of the cursor with the location of the pen near the four corners of the screen. Do this by placing the pen down near each corner of the display and see if the cursor appears at the pen location. If the cursor is offset from the pen location by some fixed amount, click the apĆ propriate UP, DOWN, LEFT, or RIGHT adjust buttons on the screen. You may prefer to add some amount of offset to place the cursor away from the pen using the same buttons. If the cursor position varies significantly from the pen locaĆ tion, the fourĆtarget calibration process was not successful. Restart the program and press the pen against the targets again. When satisfied with the calibration, click SAVE on the screen to store the reĆ sults. The results are then available for use by the pen/mouse driver. You may choose to not save the results by clicking CANCEL. In either case, the program exits. If the calibration program is unable to recognize the pen, press Escape to quit the program. In this case, the new calibration values are not stored. 2-12

6220 Hand-Held Computer Technical Reference

Page 27

SECTION 2

DOS Device Drivers

Pen Driver MOUSE.COM is actually a DOS mouse driver. It interprets the standard INT 33h mouse interface. Not all mouse functions are supported. Refer to any reference manual that includes standard mouse interrupts or to the Application Programming Interfaces Technical Reference available on the interĆ net for a list of available functions: http://partners.intermec.com/regions/devspt/index.html The pen driver installs as a TSR as a result of placing the following statement in the AUTOEXEC.BAT file: MOUSE.COM

If the drive and directory for this driver is not in your path, include that informaĆ tion, as follows: d:\drivers\MOUSE.COM d:

The driver and \path\ is the directory path to the driver.

After installation, the driver displays the following message: Driver installed Digitizer enabled

PenPrint The PENPRINT.EXE program provides the capability of printing to Intermec printers with appropriate error handling, and is shipped with the DOS Toolkit.

Installation and Configuration Command line usage: penprint [options] <print-file> <print-device> printĆfile The name of the file that contains the data to be sent to the printer. PenPrint does not modify this file. The data is sent is" to printĆdevice. printĆdevice The name of the DOS device driver that provides the interface to the printer (such as LPT1). options: ća

Cancels the printing of the report when an error message is displayed. If this parameter is not specified, PenPrint cancels printing only if a fatal error occurs.

ćh

Displays a help screen.

ćm

Suppresses the topĆofĆpage" message.

ćp

Disables the use of a pointing device. If this option is not specified, PenPrint attempts to autoĆdetect the presence of a touch pad. In some situations it cannot be reliably determined whether such a device is present. In these situations, this option can be used to make sure the proper prompts are used for error messages. 6220 Hand-Held Computer Technical Reference

2-13

Page 28

DOS Device Drivers

SECTION 2

ćr

Provides the option to restart the report, after a fatal error has occurred. If selected, PenPrint does not restart the report itself, but instead returns to the calling application with a return code indicating the choice made. It is then up to the calling application to restart the report. This is because a report may consist of a header and trailer, and the calling application may need to make two separate calls to PenPrint to print them, in order to prompt such as OKAY?" before printing the trailer. If this parameter is not specified, the only option available after a fatal error occurs is to cancel the report.

ćv<f> The name of a file that contains the VOID message. This parameter overrides the default VOID message that is sent to the printer when either a fatal error occurs or the report is canceled. PenPrint sends the data in <f> to the printer in the same manner that it handles printĆfile, except that error processing is disabled. If <f> is not specified, nothing is sent to the printer after a fatal error. This should only be done if the printer itself prints a VOID message when it detects a fatal error. Otherwise, it is always best to provide an indication that the report is invalid.

Return Codes 0

Report OK; report was not canceled.

2

Report was canceled by the user after a nonĆfatal printer error.

3

Report was canceled after a fatal printer error.

5

After a fatal printer error, user selected to restart report.

128

An error occurred on a device other than the printer.

253

The print file could not be opened.

254

The display could not be initialized.

255

Invalid parameter or incorrect number of parameters.

Usage Notes 1. PenPrint depends upon the BGI graphics drivers to implement graphics. Therefore, the appropriate BGI driver must reside in the current directory. 2. Recoverable errors require manual intervention. PenPrint will: a. Display the error message. b. Display the response options: or (optionally) (see ća parameter). c. Require an option to be selected. d. Restore the display. With PenPrint continues printing. With PenPrint atĆ tempts to print a VOID message. If VOID message fails, PenPrint prompts for then exits with a return code. The calling application prompts you to change the printer type or to restart the report (either choice is optional).

2-14

6220 Hand-Held Computer Technical Reference

Page 29

SECTION 2

DOS Device Drivers

3. When handling fatal (unrecoverable) errors, PenPrint will: a. Display the error message and response options: and (optional) Report" (see parameter). b. Prompt for an option and restore the display. c. Attempt to print the VOID message. If the VOID message fails, prompt for topĆofĆpage." d. Exit with the return code. With Report," the calling application should restart the report. With the calling application prompts you to change the printer type or restart the report (either choice is optional). 4. If the parameter is not specified, the following VOID message is printed by PenPrint (bold doubleĆwide mode): VOID * VOID * VOID This message requires at least a 38Ćcolumn printer. For printers that have more than 38 columns, the default message is printed at the left margin. 5. When printing the VOID message, error handling is disabled (i.e., you see only the error message for the original error). You might be in an infinite loop of error messages in PenPrint, if the original error was from a nonfuncĆ tional printer. PenPrint does not filter the data in the printĆfile. Data is sent is" to the printĆdevice. 6. If a pointing device is detected and the switch is not used, PenPrint displays check boxes as Report," or onscreen. Any touch within a box activates that response. If the parameter is specified or no pointing device is detected, the prompts display Continue," Restart Report," or Cancel."

Power Management NORDOSPM.EXE, which is part of Advanced Power Management (APM) when running under DOS, is the DOS power management driver interface between applications and the APM BIOS. Install the power management driver as a deĆ vice driver at system startup time. This driver attempts to determine when the DOS environment is idle and saves power by idling the CPU and polls for APM events and broadcasts them to DOS drivers and applications. Mediates events that can be failed such as suspend, user suspend, standby, and user standby requests. Figure 2-1 is a simplified diagram of Power Management Software: NORDOSPM.EXE

DOS APM driver

BIOS Extension

APM BIOS

BIOS

System BIOS

Hardware

600 Series Computer hardware

Figure 2-1 Power Management Software 6220 Hand-Held Computer Technical Reference

2-15

Page 30

DOS Device Drivers

SECTION 2

Screen Emulation FONTMAP.EXE is a 4000 Series screen emulation TSR for the 6220 Computer. This program ports applications written for a 4000 Series platform to the 6220 Computer without modifying the display logic. Screen features include: " " "

Character mapping Cursor fixed mode Variable font sizes (20, 21, or 16 characters across the screen)

FONTMAP replaces the standard VGA BIOS interface with a 4000 Series comĆ patible video BIOS interface. Standard VGA BIOS calls are not available once FONTMAP is loaded. It works only with the 200x160Ćpixel display on the 6220 Computer. In the absence of command line switches, the default mode for FONTMAP is as follows: " " "

"

Cursor chase video mode 8x16 bitmap font Inverse mode on (characters above 127 are mapped to inverse video characĆ ters 0ć127 when the high bit is turned off) Cursor turned off

Command Line Switches INSTALL=FONTMAP.EXE –F <fontfile> –S –I

The following is a list of command line switches for FONTMAP: ćI

Character codes (128-255) displayed as extended characters. If this switch is not present, 128 is subtracted to map character codes (128-255) to (0-127); the remapped characters appear in inverse video.

ćC

Sets the number of physical character columns in the display.

ćR

Sets the number of physical character rows in the display.

ćS

Defaults the screen to fixed mode.

ćF <fontfile> Loads the font from a file represented by <fontfile>, such as GR12x16.FMT. The space between ćF and the file name is required.

Font File Format *.FMT files are font files used with FONTMAP.EXE. The following shows the format of a font file: xsize byte

Number of font pixels in x direction ysize byte

Number of font pixels in y direction font[(xsize+7/8),ysize] byte

The actual bitmap font

The largest bitmapped font that can be supported is 8 KB.

2-16

6220 Hand-Held Computer Technical Reference