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 38

PEN*KEY 6100 Computer Programmer's Reference Guide: Section 2: Supporting DOS Applications, pages 53 to 60

Pages 53 to 60 of 328, from PEN*KEY 6100 Computer Programmer's Reference Guide

The original document is the PDF (1.2 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 Norand 6100

Page 53

Section 2

Supporting DOS Applications "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Introduction This section contains information about applications that run under DOS on the PEN*KEYR 6100 Hand-Held Computers. Topic Summary Page

DOS Power Management Driver: NORDOSPM.EXE . . . . . . . . . . . . . . . . . . . . .

2-2

ELAN Configuration Driver: ELANCFG.EXE . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-3

DOS Pen Driver: 61MOUSE.COM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-6

DOS Pen Calibration: CALIB.EXE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-7

DOS Scanner: 61PODSCN.EXE, 61THRSCN.EXE . . . . . . . . . . . . . . . . . . . . . . . .

2-8

DOS NPCP Printing: PC4800.SYS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-10

DOS IrDA Printing: PRDRV.SYS, IRDAPDRV.EXE . . . . . . . . . . . . . . . . . . . . . . .

2-12 interface between applications and DOS APM BIOS configuration utility that sets APM options for the AMD ELAN processor emulates the standard INT 33h mouse interface for calibration of the pen interface for the 6100 Computer provides support for collecting and passing scanned data to applications standard DOS character printing, using the NPCP protocol standard DOS character printing, using the IrDA protocol

PEN*KEY R 6100 Computer Programmer’s Reference Guide

2. DOS Applications

Topic

2-1

Page 54

Supporting DOS Applications

SECTION 2

DOS Power Management Driver: NORDOSPM.EXE Overview NORDOSPM.EXE, which is part of the Advanced Power Management (APM) system when running under DOS, is the DOS power management driver interĆ face 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 it 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 power management settings at installation time. Figure 2-1 below is a simplified diagram of Power Management Software:

NORDOSPM.EXE

The DOS power management driver.

ELANAPM

The APM BIOS installation for DOS.

2. DOS Applications

BIOS

Hardware

The system BIOS.

The 6100 Computer hardware.

Figure 2-1 Power Management Software

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

Refer to the APM BIOS Interfaces: ELANAPM.EXE paragraph, in the ConverĆ sions and Interfaces section for a detailed description of ELANAPM.EXE, the APM BIOS driver.

Command Line Switches Refer to the Microsoft documentation for the APM applications command line switches.

2-2

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 55

SECTION 2

Supporting DOS Applications

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 /In /Kn /Ln /Mn /Rn /Tn /Vn /Wx /S

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

/Dn

/En

/Hn

PEN*KEY R 6100 Computer Programmer’s Reference Guide

2-3

2. DOS Applications

/Cn

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. Configure System Management: Valid values for n: 0, 1, 2, 3, 4, and 5. 1= Auto-Contrast enabled 0= disabled 3= Battery Hot Swap enabled 2= disabled 5= Suspend In Dock enabled 4= disabled 7= INTs are NOT activity in DOZE 6= INTs are activity in DOZE Set TimeĆout from Doze to Sleep: Configures Doze mode timer. Valid values for n: 0, 4-1024 (nearest multiple of four seconds are 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. 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. Set TimeĆout 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 countdown 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. The Low Speed PLL mode count down timer starts when the processor enters Low speed PLL mode. Therefore the processor never enters 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.

Page 56

Supporting DOS Applications

SECTION 2

2. DOS Applications

/IOxn Set Activity to I/O Address: Configures the Programmable I/O range activity mask. Valid valĆ ues 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 exĆ tends 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). /Ln Set TimeĆout 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. /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.

2-4

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 57

SECTION 2

Supporting DOS Applications

Power States ELANCFG.EXE has four power states: High Low Doze

Suspend (sleep)

The processor is running full speed The processor is running at a reduced speed The processor is halted -the backlight turns off, if it was on; the display is still up and the touch is still up; power is still supplied to terminal and external devices. The processor is halted -the display turns off; power to PC cards is turned off; power to communication devices is turned off; power to the touch screen and keyboard has some power on. The only way to resume/wake the unit is through the I/O button (Suspend/Resume) or the waĆ keup events.

The transition times for power states can be customized through the use of ELANCFG.EXE. The settings concerning timeĆouts are: the time at High speed before going to Low speed the time at Low speed before going to Doze the time at Doze before going to Sleep For example, if you want to set the backlight to be on for 30 seconds, and then suspend the unit at 60 seconds Ċ one way to configure this is as follows: elancfg.exe /H10 /l20 /d30

This keeps the 6100 Computer operating at High speed for 10 seconds. Then, if no activity is perceived at 11 seconds, it switches to Low speed for 20 seconds. Then, if there is still no activity perceived (after that 20 seconds), it switches to Doze and the backlight turns off. Finally, after 30 seconds has passed, the unit switches to Suspend. Also, you can restrict the 6100 Computer from reaching one of the lower states if a parameter of 0 (zero) is used at any of these levels. That means the 6100 ComĆ puter is at that power state, and cannot go to lower states. For example, if you have a PC Card radio that needs to be active all the time, then you might consider restricting your power management to not use the Sleep mode. By using the following call, you disable the 6100 Computer from autoĆsusĆ pending, and let it run at high speed for 10 seconds and, at low speed for 10 secĆ onds, then remains in Doze mode indefinitely until activity is perceived, a PowerĆ fail event occurs, or a uses request suspend occurs: elancfg /H10 /L10 /D0

Obviously, these settings have a large impact on your battery life. So they should be made with battery needs in mind.

PEN*KEY R 6100 Computer Programmer’s Reference Guide

2-5

2. DOS Applications

/H /L /D

Page 58

Supporting DOS Applications

SECTION 2

DOS Pen Driver: 61MOUSE.COM Overview The pen driver is actually a DOS mouse driver. It interprets the standard interĆ rupt 33h mouse interface. Not all mouse functions are supported. Refer to the Conversions and Interfaces section, in the Standard Mouse interface: INT 33 paragraph, for a list of functions available. Also refer to the Ralf Brown's Interrupt list for detailed information relating to the Standard Mouse Interface: INT 33 (see the Reference, Open Systems PublicaĆ tions section for ordering information).

Installation Ensure the following files are located in the root directory on the 6100 Computer: File ELANAPM.EXE 61MOUSE.COM CALIB.EXE

Directory \ (root) \ (root) \ (root)

2. DOS Applications

The pen driver installs as a TSR as a result of placing the following statement in the AUTOEXEC.BAT file: 61MOUSE.COM If the drive and directory for this driver is not in your path, include that informaĆ tion, as follows: d:\path\61MOUSE.COM where: d: is the driver and \path\ is the directory path to the driver. After installation, the driver displays the following message: Driver installed 6100 Digitizer enabled " NOTE:

2-6

Always load IrDA driver before the pen driver.

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 59

SECTION 2

Supporting DOS Applications

DOS Pen Calibration: CALIB.EXE Overview CALIB.EXE is the DOS Pen Calibration utility. It performs calibration of the pen interface for the 6100 Computer, as well as other PEN*KEY computers. Calibration is simply the alignment of the location of the cursor to the same locaĆ tion where a finger or pen is placed on the touch screen. The 6100 Computer comes with default settings that are normally acceptable for most applications. However, some applications, such as signature capturing, may require a calibraĆ tion adjustment to compensate 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.

Required Calibration Files CALIB.EXE N6100.BGI " NOTE:

(calibration utility) (BGI driver)

See BGI Support in Appendix A, Sample Configuration Files for BGI driver information

Usage CALIB.EXE begins the calibration process by placing one of four targets at a fixed location on the screen and waits for the user to press the pen at the center of the target three times. It is important during this process to apply moderate pressure while pressing the target. Lightly tapping or placing too much pressure generates incorrect results. The unit beeps after each successful press of the pen. Therefore, if a beep is not heard when the pen is down, lift and press again. Also use care to not allow fingers or any other object to touch the screen. When the program has acquired three good data points for the target, it then displays the next target. When data for all four targets are acquired, the program then displays a screen which checks the calibration results. Check the match of the cursor with the location of the pen near the four corners of the screen. The best way to do this is to place the pen down near each corner of the display and see if the cursor apĆ pears at the location of the pen. If the cursor is offset from the pen location by some fixed amount, adjust it by pressing the appropriate UP, DOWN, LEFT, or RIGHT buttons on the screen. (The user may prefer to add some amount of offĆ set to place the cursor away from the pen using the same buttons.) If the cursor position varies significantly from the pen location, as the pen is placed at the difĆ ferent corners, the four target calibration process was not successful. Restart the program and pay closer attention to how the pen is pressed against the targets. PEN*KEY R 6100 Computer Programmer’s Reference Guide

2-7

2. DOS Applications

CALIB.EXE is a DOS application program and can be invoked from the AUTOĆ EXEC.BAT file 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, which is required for this implementation of CALIB.EXE.

Page 60

Supporting DOS Applications

SECTION 2

When satisfied with the calibration, press the SAVE button on the screen to store the results. The results are then available for use by the pen/mouse driver. You may choose to not save the results by pressing the CANCEL button. In either case, the program exits. If for some reason the calibration program is unable to recognize the pen, you can press the Escape key and the program exits. In this case, the new calibration values are not stored.

DOS Scanner: 61PODSCN.EXE, 61THRSCN.EXE Overview 61PODSCN is the pod scanner. 61THRSCN is the tethered scanner. The pod scanner collects and passes scanned data to an application via the stanĆ dard DOS typeĆahead buffer, where the scanned bar code is available to an apĆ plication as simple keystrokes. The program also manages power for the scan operations. The tethered scanner behaves just like the pod scanner, except: I/O is through the serial lid; " There is no way to reprogram a key as a trigger; " Does not display anything on the screen; " Can be used if you need a fully decoded RS-232 scanner. 61PODSCN is generally installed from AUTOEXEC.BAT by this statement: "

2. DOS Applications

61PODSCN [–option[value]] ...

The program must be installed after the CardSoft drivers and TSRs are installed (if they are used) and after ELANAPM.EXE is installed. Also, if CardSoft drivĆ ers and TSRs are present in the system, the command line option on NORĆ DOSPM.EXE that some CardSoft bugs (/ss:1) must not be used on NORĆ DOSPM.EXE, but instead used as an option to 61PODSCN.

Installation Ensure the following files are located in the root directory on the 6100 Computer: File ELANAPM.EXE 61PODSCN.EXE 61THRSCN.EXE BIOSDOT.COM

Directory \ (root) \ (root) \ (root) \ (root)

The driver, ELANAPM.EXE, needs to be loaded first, and BIOSDOT.COM needs to be loaded before 61PODSCN.EXE or 61THRSCN.EXE. ELANAPM.EXE should already be located on the flash, all of the other files listed above can be found in the Tool Kit. BIOSDOT.COM handles printing a window to the screen when the trigger is pulled. This program is only needed in a graphics environment, and not for a text environment

2-8

PEN*KEY R 6100 Computer Programmer’s Reference Guide