The text of a manual · part 30 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Appendix A: Sample Configuration Files, pages 263 to 271
Pages 263 to 271 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 263
Appendix A
Sample Configuration Files "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Introduction
Topic Summary Sample Boot Configurations Files: AUTOEXEC.BAT, CONFIG.SYS . . . . . . . . . Other Configuration Files: PENWIN.INI, SYSTEM.INI, WIN.INI . . . . . . . . . . A sample configuration using a SanDisk Card with Stacker KEYS.INI (Key Remapping Parameter File) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . This is a sample program that demonstrates remapping of the CTL-ALT-DEL keys to perform a soft reset.
Setups for Third Party Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . This paragraph contains sample code setting up thirdĆparty applications, such as PenĆ Pal (DOS) and PenRight! (DOS)
Handwriting Recognition System Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . This paragraph contains the Handwriting Recognition program installation code.
APM Event Code Broadcast Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . This paragraph contains sample listing of event code values.
BGI Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Page A-1 A-3 A-13 A-14 A-15 A-14 A-15
This includes some programming examples and a sample N6100.H file.
Sample Boot Configurations Files AUTOEXEC.BAT (Default) " NOTE:
The AUTOEXEC.BAT and CONFIG.SYS files shown in this section are configured to go together. These files found in softcopy, in the Tool Kit, are almost exactly like these. If one of these examples is copied, remember these two files need to be configured to work together. @echo off Rem Remap keys from BIOS default for new overlay d:\keymap.exe d:\keys.ini > nul path=d:\;d:\cs;d:\acn if “%1” == “” autoexec.bat E: F: :checkcard shift if “%0” == “” goto loadtsrs Rem DIRCNT.EXE returns 0 if bad drive, or file count + 1.2 will be returned PEN*KEY R 6100 Computer Programmer’s Reference Guide
A-1
A. Sample Configuration Files
This section contains sample configurations for the PEN*KEYR 6100 Hand-Held Computer, as summarized below.
Page 264
Sample Configuration Files
APPENDIX A
Rem AUTOEXEC.BAT is found on a drive. dircnt.exe %0\autoexec.bat >nul: if not errorlevel 2 goto checkcard %0 autoexec.bat %0 :loadtsrs Rem 4000api is needed by psrom0c to run acnnpcp LH d:\4000api.exe /PC /10 /16 /C3 LH d:\mininet.exe –s1152 –t0 –c1 LH d:\vrotate.exe 0 0 240 320 LH d:\share.exe /f:3072 /l:128 LH d:\fontsel.exe 1
A. Sample Configuration Files
:romutils d:\psrom0c.exe –i if errorlevel 1 goto exit Rem Errorlevel 0 indicates that psrom0c.exe exited to drive e: to allow REM executing autoexec.bat if exist autoexec.bat autoexec.bat goto romutils :exit @echo on EXAMPLE:
Sample AUTOEXEC.BAT for Windows This is a DOS code example that could set up Windows via AUTOEXEC.BAT. @ECHO OFF REM Disable VROTATE if existed d:\vrotate.exe –D REM Disable Video Accesses as Activity d:\elancfg /V0 /H16 /L1 /D4 /T2 /C0 rem /V0 – Disable Video Accesses as Activity rem /H16 – High Speed to Low Speed set to 16 seconds rem /L1 – Low Speed to DOZE set to 16 seconds rem /D4 – Doze to Suspend set to 4 rem /T0 – Extended timer ticks in DOZE path=\;d:\;\windows cd \ 911
CONFIG.SYS (Default) Rem Display the Flash version message for 15 seconds device=d:\delay.exe “” “PEN*KEY 6100 FLASH 61FL1000 V1.16” /1000 break=on buffers=30 files=128 lastdrive=z stacks=9,256 device=d:\himem.xyx /machine:2 Rem Do not load dos=high, because it causes DOS to use High Memory Area, Rem which prevents creating a maximum RamDrive. Rem dos=high device=d:\elanump.sys /X=C000 dos=umb devicehigh=d:\elanapm.exe devicehigh=d:\nordospm.exe devicehigh=d:\clock.exe Rem Norand Card and socket services drivers: devicehigh=d:\norcs\elancsss.exe Rem /r means auto-retry after suspend devicehigh=d:\norcs\atabios.sys /r devicehigh=d:\norcs\norata.sys A-2
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 265
APPENDIX A
Sample Configuration Files
Rem /c4 means install as COM4 Rem /s means save and restore UART values for COM4 on SUSPEND/RESUME Rem /d m n t means delay t ticks where m=man code and n=man info Rem 16b 21 refers to the Erickson PIA radio devicehigh=d:\norcs\normod.sys /c4 .s /d 16b 21 20 Rem Delay for two seconds to ensure ELANCSSS has recognized the cards device=d:\delay.exe /100 “ devicehigh=e:\stacker.drv /p=1 e: f: devicehigh\f:\stacker.drv /p=1 f: shell=d:\command.com d:\ /e:512 /p EXAMPLE:
Sample CONFIG.SYS At a minimum, the following statements should be included:
EXAMPLE:
A. Sample Configuration Files shell=d:\command.com d:\ /p device=d:\elanapm.exe device=d:\nordospm.exe
Another Sample CONFIG.SYS The following is another sample of a CONFIG.SYS file: shell=d:\command.com d:\ /e:512 /p device=d:\himem.sys devicehigh=d:\elanump.sys /x=C000,D400,D800,DC00,E000 device=a:\emm386.exe i=D400–EFFF FRAME=D400 devicehigh=d:\elanapm.exe devicehigh=d:\nordospm.exe dos=high,umb break=on buffers=30 files=50
Other Sample Configuration Files PENWIN.INI The following is an example for use with Windows 3.1 on a 6100 Computer: [Current] User=User 1 InkWidth=1 InkColor=0 SelectTimeout=500 [*User 1] TryDictonary=100 ErryrLevel=25 EndRecognition=8000 TimeOut=500 WriteDirection=103 MenuDropAlignment=0 Preferences=0 IntlPreferences=0 Recognizer=mars.dll [Dictionary List] MAINDICT.DLL= [Recognizer List] MARS.DLL= [MsSpell] MSSPELL.DLL= [MsMainDict] enuMain= PEN*KEY R 6100 Computer Programmer’s Reference Guide
A-3
Page 266
Sample Configuration Files
APPENDIX A
[User List] User 1= [sysges] C!=xx,0,{Ctrl}{Ins} P!=xx,0,{Shift}{Ins} X!=xx,0,{Shift}{Del} U!=xx,0,{Alt}{Bs} [Pen Palette] SKBPos=15 92
SYSTEM.INI The following is an example of a SYSTEM.INI file, for use with Windows 3.1: A. Sample Configuration Files
;–––––––––––––––––––––––––––––––––––––––––––––––––––––– ; Norand 6100 Windows 3.1 SYSTEM.INI ; Based on 6300 Toolkit v1.16 ;–––––––––––––––––––––––––––––––––––––––––––––––––––––– [boot] shell=winfile.exe display.drv=6100disp.drv system.drv=system.drv keyboard.drv=keyboard.drv mouse.drv=yesmouse.drv comm.drv=comm.drv sound.drv=sound.drv network.drv= fonts.fon=egasys.fon fixedfon.fon=egafix.fon oemfonts.fon=egaoem.fon ; Grabbers are required for Non-Windows App support. ;386grabber=vga.3gr ;286grabber=vgacolor.2gr
Optional.
language.dll= ;– Installable driver tokens. See [Drivers] section below for actual driver ; file names. Optional drivers can be left out or can be commented out in ; the [Drivers] section. drivers=power irda pen penwindows scanner npcp ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – SCRNSAVE.EXE=(None) [drivers] ;– This is the Required APM driver. ;power=power.crv power=norwinpm.drv ;– This is the Required pen driver. pen=uclkpen.drv
See [Power Driver] section below.
See [Pen Driver] section below.
;– This is the Optional scanner driver. ; It is disabled by default. ;scanner=61scan.drv
See [Scanner Driver] section below.
;– This is one of the settings for enabling Pen Windows, if you use it. ; is disabled by default. ;penwindows=penwin.dll ;– This driver is needed to provide NPCP printing support. ; by default. ;npcp=nornpcp.drv
It is disabled
;– This driver is needed to provide IrDA printing support. ; by default. ;irda=norirda.drv
It is disabled
;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – A-4
It
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 267
APPENDIX A
Sample Configuration Files
[Power Driver] ;– Indicates how often to repeat warnings like “Battery Low”. MsgRepeatMinutes=1
Default is 9.
;– Sets level of power messages. Default is 1. Here are the currently ; defined levels. Note that levels above 1 are for debug purposes ONLY! ; 0: No warning or debug messages. Errors are still displayed. ; 1: Warnings ; 2: Infrequent debug information ; 8: Frequent, but non-repeating debug information ; 10: Frequent, repeating debug information ; 15: All messages plus beep when system activity is detected. ApmEventDialogs=1 ;– Sets the number of seconds without user activity before backlight is ; turned off. Default is 30. Set to 0 to disable Backlight timeouts. BacklightSeconds=30
A. Sample Configuration Files
;– Sets the number of seconds without system or user activity before system ; is suspended. Default is 30. Set to 0 to disable Suspend timeouts. SuspendSeconds=60 ;– APM Debugging switches –––––––––––––––––––––––––––––––––––– ;– Turns on debug output. Default is 0. All messages are written to debug ; output. ; 0: No debug output. ; 1: Debug output is sent to Windows 3.1 debug monitor. ; (Example: DBWIN.EXE) ; 2: Debug output is broadcast to DOS and top-level windows. See Toolkit ; documents. ; 3: Both methods 1 and 2 above are enabled. ; ; Run the “DBWIN.EXE” utility that comes with the Windows 3.1 SDK to view ; debug output. Clear one output error as Windows starts since NORAPM.DLL ; tries to output debug data before DBWIN can load. ApmDebugOutput=0 ; Enables Real Time Clock (RTC) diagnostics. Default is 0. Enables the RTC ; diagnostics built into NORAPM.DLL. This entry is a DECIMAL representation ; of several bit-mapped options. A diagram of the currently defined fields ; (separated into nibbles for readability) is laid out below. A description ; of each defined field follows: ; ; 0000 | 000M | 0000 | LLLE ; ; E) Bit 0: Set to 1 to enable RTC checking. Currently, clock is checked ; every 10 seconds for regression and writes by other applications. ; Add 1 to the entry to enable this setting. If this entry is not ; set, no other options have any effect. ; ; L) Bits 1–3: Sets the dialog level for clock regression messages. See ; the ApmEventDialogs setting above. Set to 0 to enable regression ; warnings at all times. Set to 1–7 to limit clock warnings. Add ; (level * 2) to entry to set a level greater than 0. ; ; M) Bit 8: Display a system-model dialog and lock up the system whenever ; clock regression occurs. This setting could result in data ; corruption or loss, since it forces a reboot if the clock goes ; backwards. Typical causes of clock regression are setting the ; date and time via the Control Panel, or communications software ; that attempts to synchronize the clock on the HHC with a remote ; system’s clock. Use of this setting is recommended only for ; debugging. Add 256 to the entry to enable this option. ; ; Bits 4–7 and 9–15 are currently undefined and should be set to 0. ; ; Example settings: ; 0: Default, no clock checking. PEN*KEY R 6100 Computer Programmer’s Reference Guide
A-5
Page 268
Sample Configuration Files
APPENDIX A
; 1: Enable clock checking, always display clock regression messages. ; 15: Enable clock checking, only display clock regression messages if ; ApmEventDialogs setting is >= 7. ; 257: Enable clock checking, display message and lock up system upon clock ; regression. ApmCheckRTC=0 ; Disables the broadcast of Norand-defined power management events to DOS ; drivers and TSR’s. Windows drivers and applications are not affected. ; This sidesteps broken behavior in some DOS TSR’s and drivers that monitor ; power management event broadcasts. Specifically the current SystemSoft ; PCMCIA card management software. The problem is that DOS drivers only ; examine bottom 8 bits of the event ID. OEM-defined events are 16 bits, ; thus causing the broken DOS drivers to misidentify events and act ; strangely. This entry defaults to 1, but should be set to 0, if you are ; using SystemSoft PCMCIA card drivers. Also, if “ApmFixSystemSoft” entry ; (below) is 1, this entry is forced to 0. ApmDosOemEvents=0
A. Sample Configuration Files
; This entry enables workarounds required by current SystemSoft PCMCIA ; software (see ApmDosOemEvents above). This switch currently makes these ; changes to normal APM 1.1 behavior: ; 1. SUSPEND event notifications to DOS are converted to USER_SUSPEND ; events. Windows drivers and applications are not affected. This ; entry defaults to 0 if not present but should be set to 1 if you are ; using the SystemSoft PCMCIA card drivers, until further notice. ApmFixSystemSoft=1 ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [Pen Driver] ; Pen*Key increases wOffsetX to move cursor down relative to pen. wOffsetX=693 ; Increase wOffsetY to move cursor to left relative to pen. wOffsetY=318 ; Increase wDistinctWidth to make cursor move slower relative to pen in the ; up/down direction on screen. wDistinctWidth=3512 ; Increase wDistinctHeight to make cursor move slower relative to pen in the ; left\right direction on screen. wDistinctHeight=3043 ;– 1..200. Set to 120–150 if you install hardware recognition. PointsPerSecond=50 ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [Scanner Driver] ; ScannerHardwareType controls the type of hardware the scanner is using. ; This value MUST be set or the driver does not load. There is no default ; value. The valid values are: PEN*KEY/33, PEN*KEY, and TETHERED. ScannerHardwareType=PEN*KEY ; MessageBeepScanVerification controls the type of beep generated when a ; good scan is obtained. Valid values are: OFF, INTERNAL, EXTERNAL, and ; ALL (Does both internal and external). MessageBeepScanVerification=INTERNAL ; MessageBeepStatusNotification controls the type of beep generated when a ; status change happens. Valid values are: OFF INTERNAL, EXTERNAL, and ALL ; (Does both internal and external). MessageBeepStatusNotification=INTERNAL ; MessageBoxStatusNotification controls whether or not a message box is ; generated when a status change happens. Valid values are: TRUE and FALSE. MessageBoxStatusNotification=TRUE ; EnableScannerWhenDriverLoads controls when the scanner is enabled. If ; TRUE, scanner is enabled when it is loaded by Windows and is always active ; until Windows shuts down. This option (if TRUE) does not require the ; OpenDriver and CloseDriver calls issued by the application to use the A-6
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 269
APPENDIX A
Sample Configuration Files
; scanner. If TRUE it does NOT allow multiplexing of the scanner and ; external comm 1 connections. This option uses more power. The valid ; values are TRUE and FALSE. EnableScannerWhenDriverLoads=FALSE ; DisplayScanningDataDialog controls whether or not the Scanning Data. ; Dialog is displayed when the trigger is pulled. Valid values are: TRUE ; and FALSE. DisplayScanningDataDialog=TRUE ; ShowWindowOnLoad controls whether or not the scanner window icon is ; displayed on the screen. If this is FALSE there is no way to get to the ; scanner window. The valid values are: TRUE and FALSE. ShowWindowOnLoad=TRUE ; EnableScanCodes controls whether or not the scanner includes Scan Codes in ; the key messages that it generates. Valid values are: TRUE and FALSE EnableScanCodes=TRUE
A. Sample Configuration Files
; ExternalFlashOnScan controls whether the Good Scan light are flashed ; manually by the scanner driver when the data is received. The valid ; values are: TRUE and FALSE. ExternalFlashOnScan=FALSE ; AimingBeamDuration controls the length of time in milliseconds the long ; range scanner using a dedicated UART emits an aiming beam. All other ; scanners should have this option set to 0 (the default value). AimingBeamDuration=0 ; Use this option to set the Base Address on which the driver looks for the ; Scanner UART. The default setting is: 488 (1e8). Valid settings are: ; 1016 (3f8) for COM1, 760 (2f8) for COM2. DedicatedUARTAddress=488 ; Use this option to set the IRQ Line on which the Scanner UART interrupts. ; Default setting is 5. Other valid settings are: 4 for COM1, 3 for COM2. DedicatedUARTIRQ=5 ; This option is applicable to Hand held Scanners only. It sets the value of ; the Terminating character of the packet sent by the Scanner. The default ; setting is 03 (ETX). Other valid settings are: 10 (LF), 13 (CR). Postamble=03 ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [NPCP Driver] ; Name of device Windows outputs to and is directed out the IR Port. ; option must match the settings in WIN.INI DeviceName=LPT1
This
; Comm Port Address and IRQ CommAddress=0x03F8 CommVector=0x0C ; Determines FIFO usage on UART. FIFODepth=16
A value of 0 disables.
; Determines if power on the port turns on and off. ; non-Norand APM services. PowerManage=FALSE
May not work with all
; This option disables/enables the QueryAbort processing during printing. ; The default setting is FALSE. This disables the ability to cancel the ; Print job once it is started. Valid settings are: TRUE and FALSE. ProcessQueryAbort=FALSE ; This option is valid only if the FIFODepth setting is > 0. Sets the ; Receive interrupt trigger level. Default value is 0. Valid settings are ; 0–3. The Receive interrupt trigger is Chip dependent. On 550 UART ; setting, a value of 0 causes Chip to interrupt on every character. ; However, on an ST650 UART this implies interrupt on every 8 characters (or ; after 4 char times if there is at least one character in FIFO). For ; further details, refer to the UART documentation on setting the top 2 bits ; in the FIFO Control Register. FIFOTriggerLevel=0 PEN*KEY R 6100 Computer Programmer’s Reference Guide
A-7
Page 270
Sample Configuration Files
APPENDIX A
; Use this option to Install/Deinstall the ISR for every Print Job. This is ; useful if the IRQ is multiplexed with some other device such as the ; Scanner. The default setting is 0 (ie. no multiplexing). The valid ; settings are 0 and 1. IRQMultiplex=0 ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [IrDA Driver] ; DeviceName specifies the name of the device that Windows is sending its ; output to. The default value is LPT1.DOS which Causes all print output, ; that Windows attempts to send to the DOS device LPT1, is sent to the IrDA ; port. DeviceName=LPT2 ; Use this option to set the Base Address on which the Driver looks for the ; IR UART. Default setting is 760 (2f8). Valid settings are 1016 (3f8) for ; COM1, 760 (2f8) for COM2, 1000 (3e8) for COM3. UARTAddress=1000
A. Sample Configuration Files
; Use this to set the IRQ Line on which the UART interrupts. Default ; setting is 3 (COM2). Other valid setting is 4 (COM1). 6100 setting is 14. UARTIRQ=3 ; This sets the type of the Hand Held computer. Default setting is PENKEY. ; Valid settings are PENKEY, 6100, 6600, JETEYE, and OMNIBOOK. Technology=PENKEY ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [Norand 6805 Printer] ; This forces the drivers to use Graphics commands for entire Document. ; Valid settings are TRUE/FALSE. Default value is: FALSE. DoGraphicsOnly=FALSE ; This sets the idle time in seconds after which the Printer is Awakened ; while printing multiple pages. Default setting is 10. Valid settings are ; 10–50. Timeout=10 ; This controls the # of NULL characters sent to the printer, after the ; Initialize command, for it to Wakeup properly. Default setting is 200. ; Valid settings are 200–500. Setting a Lower value may disrupt Graphics ; printing. WakeupChars=200 ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [speaker.drv] ;– This line should be 40–45 on a Pen*Key 25 CPU Speed=40 Volume=900 Version=774 Max seconds=3 Enhanced=0 ;– Leave at 0 for best sound. Set to 1 if having interrupts disabled during ; sound playback causes problems with your configuration. Disabling ; interrupts during sound playback also causes the DOS clock to lose time ; when sounds are played. NORAPM.DLL fixes this by correcting the DOS clock ; every 10 seconds or so. Leave interrupts enabled=0 ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [keyboard] subtype= type=4 keyboard.dll= oemansi.bin= ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – ;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– ; Some Norand drivers and utilities write a version string to the ; “boot.description” section below to aid in driver identification. A-8
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 271
APPENDIX A
Sample Configuration Files
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– [boot.description] keyboard.typ= mouse.drv= network.drv=No Network Installed language.dll=English (American) system.drv=MS–DOS System codepage=437 woafont.fon=English (437) aspect=100,96,96 display.drv=NORAND Rotate driver for VGA ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [display driver] DisplayOrientation=1
A. Sample Configuration Files
; Overrides the Screen Column size used to draw the Alignment screen. The ; default values are obtained at run time, depending on the Windows mode. ; Valid values are based on the handheld computer being used. ;DisplayColumns= ; Overrides the Screen Row size used to draw the alignment screen. The ; default values are obtained at run time depending on the Windows mode. ; Valid values are based on the handheld computer being used. ;DisplayRows= ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [NORAND] Model=0 ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – [standard] ;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – ;–––––––––––––––––––––––––––––––––––– ; This section for Enhanced mode ;–––––––––––––––––––––––––––––––––––– [386Enh] display=*vddvga keyboard=*vkd mouse=*vmd network=*vnetbios, *dosnet device=vportd.386 device=vpwrd.386 device=vtdapi.386 device=*vpicd device=*vtd device=*reboot device=*vdmad device=*vsd device=*v86mmgr device=*pageswap device=*dosmgr device=*vmpoll device=*wshell device=*BLOCKDEV device=*PAGEFILE device=*vfd device=*parity device=*biosxlat device=*vcd device=*vmcpd device=*combuff device=*cdpscsi local=CON FileSysChange=off PEN*KEY R 6100 Computer Programmer’s Reference Guide
A-9