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

PEN*KEY 6400 Computer Programmer's Reference Guide: Section 2: Supporting DOS Applications, pages 41 to 49

Pages 41 to 49 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 41

Section 2

Supporting DOS Applications "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Introduction This section contains information about DOS Applications that are supported for the PEN*KEY â 6400 Computer. Topic Summary Topic

Page

DOS Power Management Driver: . . . . . . NORDOSPM.EXE . ELAN Configuration Driver: . . . . . . . . . . ELANCFG.EXE . . . DOS Scanning . . . . . . . . . . . . . . . . . . . . . . . 641223.EXE . . . . . . . Scanning Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tethered Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Internal Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Wedge Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . API Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Internal Laser Configuration Tool: . . . . 64SCNPRM.EXE . . Scan Options Menu Scan Barcodes Menu Internal Laser Engine Symbology Validations . . . . . . . . . . . . . Tethered Laser Symbology Validations . . . . . . . . . . . . . . . . . . . DOS NPCP Printing: PC4800.SYS . . . . . . . . . . . . . . . . . . . . . . . . . Installation and Configuration Functionality and Usage DOS IrDA Printing: . . . . PRDRV.SYS, . IRDAPDRV.EXE . Device Driver Entry Points Installation and Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . DOS IrDA Lite Printing: . . . . . . . . . . . . . . . NORIRDA.SYS . . . Installation and Configuration Battery Monitor: . . . . . . . . . . . . . . . . . . . . . . DOSGAS.EXE . . . . High Level Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RF Applications Batch / Mobile Applications

2-2 2-2 2-6 2-8 2-8 2-8 2-9 2-10 2-12

2-14 2-15 2-16

2-18 2-21 2-22 2-23 2-24

The following list of tables may assist you in locating topics of interest: List of Tables Table

Page

Table 2-1, 641223 Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 2-2, 6400 Laser Engine Decode Capability . . . . . . . . . . . . Table 2-3, Engine Default Values . . . . . . . . . . . . . . . . . . . . . . . . . . Table 2-4, Scanning API Functions . . . . . . . . . . . . . . . . . . . . . . . . Table 2-5, NET.CFG File Information . . . . . . . . . . . . . . . . . . . . . .

2-6 2-7 2-9 2-11 2-24

PEN*KEYR 6400 Programmer’s Reference Guide

2-1

Page 42

Supporting DOS Applications

SECTION 2

DOS Power Management Driver: NORDOSPM.EXE NORDOSPM.EXE, which is part of the Advanced Power Management (APM) system when running under DOS, is the DOS NORDOSPM management driver interface between applications and the APM BIOS. NORDOSPM.EXE must be installed as a device driver at system startup time. NORDOSPM.EXE gathers information from the APM BIOS and broadcasts the information to APM-aware applications. It also monitors DOS function calls and notifies the APM BIOS when the system is busy. In addition, NORDOSPM.EXE allows the configuration of certain NORDOSPM management settings at installation time.

Installation NORDOSPM.EXE, is installed as a device driver in the CONFIG.SYS file, and requires ELANAPM.EXE. However, it must be installed after ELANAPM.EXE. The following would be a typical entry in the CONFIG.SYS file: device=elanapm.exe device=nordospm.exe

The driver, ELANAPM.EXE, needs to be loaded first.

ELAN Configuration Driver: ELANCFG.EXE ELANCFG.EXE is a DOS command line configuration utility that sets various APM options for the AMD ELAN processor. It is intended to be executed at start-up, but may be executed (or reexecuted) at any time.

Usage ELANCFG.EXE <optional arguments>

Optional arguments may be any number of the following: /? /An /Cn /Dn /En /Hn /IOxn /Kn /Ln /Mn /Rn /Tn /Vn /Wx

Command Line Switches The command line switches are described in partial detail, as follows:

2-2

/? /An

Help screen: Displays brief command line switch descriptions. ATA Primary Activity Monitor: Configures ATA/HDD access activity mask. Valid values for n: 0 and 1. 0= processor will time-out during ATA/HDD access. 1= count down timer is reset to zero when ATA/HDD activity is detected.

/Cn

Configure System Management: Valid values for n: 0, 1, 2, 3, 4, and 5. 1 = Auto-Contrast enabled 3 = Battery Hot Swap enabled 5 = Suspend In Dock enabled 7 = INTs are NOT activity in DOZE

PEN*KEYR 6400 Programmer’s Reference Guide

0 = disabled 2 = disabled 4 = disabled 6 = INTs are activity in DOZE

Page 43

Supporting DOS Applications

SECTION 2

/Dn

Set Time-out from Doze to Sleep: Configures Doze mode timer. Valid values for n: 0, 4 - 1024 (nearest multiple of four seconds is used). Where n is the number of seconds between Doze mode and Sleep mode. 0= time-out is disabled. If any activity is detected during time-out period, processor goes back to High speed PLL mode and timer is reset to zero. For any other valid values, timer is set.

/En

AC Power Activity Monitor: Configures External power (charge) activity mask. Valid values for n: 0 and 1. 0= processor does not count down or time-out, when external charge is detected. 1= processor continues to count down and time-out, while external power is detected.

/Hn

Set Timeout from High Speed to Low Speed: Configures the High Speed PLL mode timer. Valid values for n: 0, 1 - 16 (seconds). Where n is the number of seconds between High Speed PLL mode and Low Speed PLL mode. 0= value disables the time-out. If any activity is detected during the count down period, the timer is reset to zero. This may be thought of as the amount of time the processor spends in High Speed PLL Mode if no activity is detected. If the High Speed PLL timer is disabled, the processor stays in High speed mode, and never enters Low Speed PLL mode. Since the Low Speed PLL mode count down timer starts when the processor enters Low speed PLL mode, the processor will never enter Low Speed PLL mode, Doze, or Sleep mode when the High Speed PLL timer is disabled. The same is true of all other successive time-outs. The High speed PLL mode timer starts counting down when no activity is detected, and reset to zero when activity is detected. All other valid values set the time-out. Note: see the Anomalies Relating to Timeouts paragraph below for a description of interactions between timeout, bootup, and suspend/resume.

/IOxn

Set Activity to I/O Address: Configures the Programmable I/O range activity mask. Valid values for n: 0 and I/O addresses in the range of 001h to 3FFh. 0= programmable I/O device activity does not reset the count down timer. Otherwise, n is the 8 bit starting I/O address that is checked for activity. The address range extends to 7 addresses past the starting address (8 total). If activity is detected in this I/O range, the count-down timer is reset to zero. (e.g., /IOx380 sets up I/O addresses 380h through 387h as activity).

/Kn

Keyboard Activity Monitor: Configures Keyboard interrupt activity mask. Valid values for n: 0 and 1. 1= processor continues to count down and times-out during keyboard activity. 0= timer is reset to zero when ever keyboard activity is detected (at COM4, port 2Eh).

PEN*KEYR 6400 Programmer’s Reference Guide

2-3

Page 44

Supporting DOS Applications

/Ln

SECTION 2

Set Timeout from Low Speed to Doze: Configures Low Speed PLL mode timer. Valid values for x: 0, 1 - 16. Where n is the number of seconds between Low Speed PLL mode and Doze mode. 0 = disables the time-out. For any other valid values, timer is set. If any activity is detected during the count down period, the processor goes back to High Speed PLL mode and the timer is reset to zero. Note: see the Anomalies Relating to Timeouts paragraph below for a description of interactions between timeout, bootup, and suspend/resume.

/Mn

COM4 Activity Monitor: Configures Modem activity mask. Valid values for n: 0 and 1. 0= count down timer continues during modem access. 1= count down timer is reset to zero when modem activity is detected.

/P

**UNUSED**

/Rn

Configures Ram drive access activity mask. Valid values for n: 0 and 1. 0= count down timer continues during ram drive access. 1= count down timer is reset to zero when Ram drive access is detected.

/S

**UNUSED**

/Tn

Configures Timer ticks while in DOZE mode. 0 = no timer ticks occur while in Doze mode. 1 = timer ticks occur while in Doze mode. 2 = Extended timer ticks occur while in Doze.

/Vn

Configures the Video memory write activity mask. Valid values for n: 0 and 1. 0= the processor continues to count down and time-out during video memory access. 1 = timer is reset to zero whenever video memory access is detected. Note that Windows frequently accesses video memory to repaint screens, etc. The processor will probably not time-out in Windows unless the Video activity mask is set to zero.

/Wx

Configures the programmable Resume (Wake-up) event mask. Valid values for x: R, 0, 3, 4, and 8. R = a ring-in causes the processor to wake up. 0 = all resume masks are disabled. 3 = IRQ 3 causes the processor to wake up. 4 = IRQ 4 causes the processor to wake up. 8 = IRQ 8 causes the processor to wake up.

Anomalies Related to Timeouts When you set timeouts using /Hn and /Ln, you need to be aware of the battery status that may be returned as a result of that setting, as described below. When FFh is returned from ELANAPM.EXE, this indicates “unknown battery status”. This may be a result of long delays for battery status packets being returned. ELANAPM.EXE returns FFh upon bootup or after a resume until it gets the battery packets it needs to calculate the true battery status. 2-4

PEN*KEYR 6400 Programmer’s Reference Guide

Page 45

Supporting DOS Applications

SECTION 2

When running in High Speed mode or Low Speed mode this will take 10-90 seconds for the battery packets to be received. However, when in Doze mode the 6400 Computer is unable to receive any battery packets. Thus, it will be a very long time (if ever) for ELANAPM.EXE to give back a non-FFh value. Some possible ways to work around the problem: "

"

"

Set the total time in High & Low speed modes to at least 11 seconds. This assures that at least one valid battery packet will be received upon boot, resume, or after any activity (e.g., a scan, key press, etc.). After boot or resume setup the unit to be active for at least 11 seconds, then you can have 1 second in High Speed & 1 second in Low Speed mode. The application can easily determine whether it just booted up or resumed. Then it could cause some activity for the 11 seconds and stop the activity, allowing the ELANCFG setting to take over and maximize the time spent in DOZE mode. This allows at least one valid battery packet to be received. Give up on on the APM call while in DOZE mode and merely allow the unit to autosuspend.

PEN*KEYR 6400 Programmer’s Reference Guide

2-5

Page 46

Supporting DOS Applications

SECTION 2

DOS Scanning 64SCN7B.EXE / 641223.EXE " NOTE:

The 64SCN7B.EXE scanner driver is being replaced by the 641223.EXE scanner driver. The information below is valid for both drivers, except as noted.

This is a DOS TSR driver for the internal laser engine and external serial scanners. The scanner driver must be loaded for any scanning to occur. Make sure ELANAPM.EXE and NORDOSPM.EXE are installed in the CONFIG.SYS file, because the scanner driver uses features of the APM system. The APM installation is described in the DOS Power Management Driver paragraph, on page 2-2. " NOTE:

Always load the scanner driver before any radio drivers.

Command Line Options The scanner driver is generally installed in the AUTOEXEC.BAT file, according to the following format: 641223 [ - option[value]] ...

It uses command line switches to enable the desired functions. For example: 641223 –E –A2 –W

The descriptions of the command line switches, for the scanner driver, are as follows: Table 2-1 641223 Options

Switches

Description

–? or –H –A[n]

Both options display help screen, briefly describing various options. Enable the engine aiming beam in “n” half second intervals for long-range scan engines with aiming beams. The “n” is optional, and specifies the number of intervals desired. The default is n=0=OFF. Beep on good scan. Range of valid values: 0 = no beep 1 = beep (default) Append CR/LF at the end of each barcode. Bypass Application Program Interface (API) enablement. This switch turns on the scanner immediately and permanently. Without this switch, the scanner must be turned on using the API scanning method. Use this switch when operating in wedge mode. Internal scan enable. Range of valid values: 0 = disable (do not load internal scanner) 1 = enable (default) Selects the hardware keyboard wedge method. Scanner data is sent to I/O port 60h, making the scanner data appear as hardware key presses. Some applications, such as FTP Telnet, bypass the PC BIOS and go to the hardware to get key presses. If the PC BIOS wedge method does not work, try this switch. Translate tethered scanner barcode type. Tethered scan enable. Range of valid values: 0 = disable (do not load tethered scanner) 1 = enable (default)

–B[n] –C –E

–I –P

–R –T

2-6

PEN*KEYR 6400 Programmer’s Reference Guide

Page 47

Supporting DOS Applications

SECTION 2

Table 2-1 (continued) 641223 Options

Switches –U –W

Description Unload TSR, if safe to do so. Enable the wedge mode of operation. Scanner data is sent to the keyboard buffer, using the method selected by the –P switch. The absence of –W requires an application to request scanner data through the API scanning method.

Integrated Long Range Laser Engines For integrated long range laser engines, the aiming beam needs to be setup. The switch to set the long range aiming beam for the scanner is: 641223 –An where “n” is the number of 1/2 second intervals.

6400 Laser Engine Decode Capability There are some differences in the capabilities of the internal laser engine used in the 6400 and the non-decoded laser technology used in the RF terminals. The 1122 and the 1223 scanners are supported as described in the following table. Table 2-2 6400 Laser Engine Decode Capability

Symbology

Supported for 1122

Supported for 1223

ABC Codabar Code 93 Code 11 Computer Identics 2 of 5 Straight 2 of 5 UPC–E

No No No No No Number system 1 shelf labels are not supported Yes, except alpha characters are not supported Decodes 1 of 2 fixed lengths, no minimum or maximum range.

No Yes No No Yes Yes

MSI Plessey Interleaved 2 of 5

Yes Yes

PEN*KEYR 6400 Programmer’s Reference Guide

2-7

Page 48

Supporting DOS Applications

SECTION 2

Scanning Methods The 6400 Computer supports scanning, with an external tethered serial laser scanner connected to the serial communication port or the optional internal laser engine. Scanner data can be sent to an application via the keyboard (Wedge Mode) or through an API, using INT 7A. Refer to the BIOS Interrupt Support section for usage information. The following paragraphs describe the scanning operation for: " Tethered Scanning, using an external serial scanner. " Internal Scanning, using the internal laser engine. " Wedge Scanning Method, where data is presented to a scanner-unaware application as key strokes. " API Scanning Method, where a scanner-aware application enables and disables scanning, symbologies, and other bar code parameters.

Tethered Scanning Tethered scanning is supported for any external device that sends its serial data at 9600 baud, 8 data bits, no parity, 1 stop bit, with an ASCII STX (hex 02) before the data and an ASCII ETX (hex 03) after the data. No protocols are supported such as ACK/NAK, RTS/CTS or XON/XOFF. All 8-bit characters between the STX and ETX are stuffed into the PC BIOS key buffer. The scanner driver limit for the number of characters is in excess of 100 characters. When using tethered scanning without an internal laser engine, add the “–i0” switch to the scanner driver command line in order to disable the engine. If the engine is not disabled, then initialization of the scanner driver engine fails and causes the message “DASI Scanner HW initialization failed”. This does not cause any problems. Tethered laser power is always on, allowing a tethered laser to scan, decode, and send the data as soon as it is plugged in; even when there is no driver and application to handle the data. Therefore, proper operation of the tethered laser is no indication that you have the correct version of the scanner driver, that it is correctly configured, nor that the application program is designed correctly. There is no supported method to send configuration parameters to a tethered serial device. Tethered laser devices can only be configured using setup bar codes that are listed in the respective user manual.

Internal Scanning Internal scanning uses the internal laser engine that connects to the top end of the 6400 Computer. The scanner driver controls the power to the engine, which means the scanner driver must be loaded before the 6400 SCAN key can operate. When using the internal laser engine without a tethered laser, add the “–t0” switch to the scanner driver command line in order to disable handling of the tethered laser serial data. This is especially necessary if the serial port is used for another device, such as a printer. You can change the default engine configuration by scanning setup bar codes. Refer to the SE 1223 Integrated VLD Scanner User ’s Guide, for the setup bar codes for the scanning engine. 2-8

PEN*KEYR 6400 Programmer’s Reference Guide

Page 49

Supporting DOS Applications

SECTION 2

The engine default values may be restored by scanning the RESET bar code. These values are as follows: Table 2-3 Engine Default Values

Value

Description

1

No preamble characters

2

0x0d,0x01 (<cr–lf>) postamble. May need to be disabled, depending on the application program.

3

UPC/EAN, Code 39, I 2 of 5, Code 128, Codabar, MSI Plessey are all enabled. Disable those not needed. Only enable the needed symbology.

4

Addon-2 and addon-5 supplementals for UPC and EAN are disabled.

5

No symbology type prepended to the bar code data.

6

MSI Plessey application check digit is disabled.

7

Code 128 function characters are removed from the bar code data.

8

I 2 of 5 fixed length 1 is 14 characters. Set this to the actual length of the bar code used by the application. A length of zero disables that length option.

9

I 2 of 5 fixed length 2 is zero which disables it. Leave the second length disabled unless the application uses two different length bar codes.

The internal scanner engine may be configured one of two ways: 1. Scan setup bar codes in the SE 1223 Integrated VLD Scanner User ’s Guide, when using the Wedge Scanning Method described below. 2. The application software can send commands to the scanner API when using the API Scanning Method described below. Some configuration options require scanning a single bar code, after which the computer beeps to indicate that the bar code parameter has been changed. If the parameter is the same as it was, the computer will not beep. Those configuration options, which require more than one bar code to be scanned, will not beep until the LAST bar code in the sequence is scanned. The engine currently uses a power conservation method that causes it to power down after 1/2 to 1 second. Because of this, configuration bar codes in a multiple bar code sequence must be scanned within 1/2 second of each other. " NOTE:

Tip: After reading a bar code, aim the engine away from the bar codes and press the SCAN key within half a second, to get the laser beam back on. With the laser beam on, you have five seconds to find and scan the next bar code.

Wedge Scanning Wedge scanning is a method, in which scanner data is presented to an application as key presses. Wedge scanning is simple to implement, but allows scanning at any time and does not support data validations beyond those provided by the laser device. Some applications are sensitive to non-key stroke values in the key buffer such as 0x0a or 0x0d or other non displayable characters. So be aware of what the tethered device is sending. If data does not make it to the key buffer, is wrong, or the application hangs, then verify what data is being received from the scanner device. A DOS terminal emulator, such as ProComm, can be used (without the scanner driver loaded) to verify the data received at the serial com port. PEN*KEYR 6400 Programmer’s Reference Guide

2-9