The text of a manual · part 31 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Appendix A: Sample Configuration Files, pages 272 to 280
Pages 272 to 280 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 272
Sample Configuration Files
APPENDIX A
;– COM3 is where the PCMCIA modem installs, if using one. COM3Irq=10 COM3Base=03E8 ;– The following fonts are required for Non-Windows application support. ; Optional. ;woafont=dosapp.fon ;EGA80WOA.FON=EGA80WOA.FON ;EGA40WOA.FON=EGA40WOA.FON ;CGA80WOA.FON=CGA80WOA.FON ;CGA40WOA.FON=CGA40WOA.FON ;– The following is required for Non-Windows application support ;[NonWindowsApp] ;CommandEnvSize=128 EXAMPLE:
Example WIN.INI File The following is an example of a WIN.INI file, for use with Windows 3.1:
A. Sample Configuration Files
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– ; Norand 6300 Windows 3.1 WIN.INI ;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– [windows] NorShellRun=winfile.exe spooler= load= run= Beep=yes NullPort=None BorderWidth=5 CursorBlinkRate=530 DoubleClickSpeed=595 Programs=com exe bat pif Documents= DeviceNotSelectedTimeout=15 TransmissionRetryTimeout=45 KeyboardDelay=2 KeyboardSpeed=31 ScreenSaveActive=0 ScreenSaveTimeOut=120 DoubleClickWidth=96 DoubleClickHeight=96 CoolSwitch=1 DosPrint=no ; Uncomment this line to make the 48xx NPCP printer be the default. ;device=NORAND 4800,NOR4800,LPT1.DOS ; Uncomment this line to make the 6805 IrDA printer be the default. device=NORAND 6805,NOR6805,LPT2.DOS [Desktop] Wallpaper=WINTITLE.RLE TileWallPaper=0 Pattern=(None) GridGranularity=0 IconSpacing=50 [Sounds] ; These sounds are played when Windows starts and quits. SystemStart=tada.wav, Windows Start SystemExit=chimes.wav, Windows Exit ; These sounds are played when A/C is connected and disconnected. ApmAcOn=tada.wav, A/C Online ApmAcOff=chimes.wav, A/C Offline ; To reduce system overhead, do not enable any of these sounds. Leaving a ; sound entry blank causes a simple beep to be played in its place. A-10
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 273
APPENDIX A
Sample Configuration Files
PEN*KEY R 6100 Computer Programmer’s Reference Guide
A. Sample Configuration Files
;SystemDefault=chimes.wav, Default Beep ;SystemExclamation=chimes.wav, Exclamation ;SystemHand=chimes.wav, Critical Stop ;SystemQuestion=chimes.wav, Question ;SystemAsterisk=chimes.wav, Asterisk [Extensions] cal=calendar.exe ^.cal crd=cardfile.exe ^.crd trm=terminal.exe ^.trm txt=notepad.exe ^.txt ini=notepad.exe ^.ini pcx=pbrush.exe ^.pcx bmp=pbrush.exe ^.bmp wri=write.exe ^.wri rec=recorder.exe ^.rec hlp=winhelp.exe ^.hlp doc=winword.exe ^.doc dot=winword.exe ^.dot rtf=winword.exe ^.rtf [intl] sLanguage=enu sCountry=United States iCountry=1 iDate=0 iTime=0 iTLZero=0 iCurrency=0 iCurrDigits=2 iNegCurr=0 iLzero=1 iDigits=2 iMeasure=1 s1159=AM s2359=PM sCurrency=$ sThousand=, sDecimal=. sDate=/ sTime=: sList=, sShortDate=M/d/yy sLongDate=dddd, MMMM dd, yyyy [ports] ; A line with [filename].PRN followed by an equal sign causes [filename] to ; appear in the Control Panel’s Printer Configuration dialog box. A printer ; connected to [filename] directs its output into this file. LPT1:= LPT2:= LPT3:= COM1:=9600,n,8,1,x COM2:=9600,n,8,1,x COM3:=9600,n,8,1,x COM4:=9600,n,8,1,x EPT:= FILE:= LPT1.DOS= LPT2.DOS= [FontSubstitutes] Helv=MS Sans Serif Tms Rmn=MS Serif Times=Times New Roman Helvetica=Arial [TrueType] [Sounds] SystemDefault=ding.wav, Default Beep
A-11
Page 274
Sample Configuration Files
SystemExclamation=chord.wav, Exclamation SystemStart=tada.wav, Windows Start SystemExit=chimes.wav, Windows Exit SystemHand=chord.wav, Critical Stop SystemQuestion=chord.wav, Question SystemAsterisk=chord.wav, Asterisk [mci extensions] wav=waveaudio mid=sequencer rmi=sequencer [Compatibility]
A. Sample Configuration Files
[fonts] Arial Narrow Bold (TrueType)=ARIALNB.FOT MS Sans Serif 8,10,12,14,18,24 (VGA res)=SSERIFE.FON Courier 10,12,15 (VGA res)=COURE.FON MS Serif 8,10,12,14,18,24 (VGA res)=SERIFE.FON Symbol 8,10,12,14,18,24 (VGA res)=SYMBOLE.FON Small Fonts (VGA res)=SMALLE.FON [embedding] SoundRec=Sound,Sound,SoundRec.exe,picture Package=Package,Package,packager.exe,picture PBrush=Paintbrush Picture,Paintbrush Picture,pbrush.exe,picture ;Note–it=MS Note–It,MS Note–It,note–it.exe,picture [colors] Background=0 0 0 AppWorkspace=64 0 0 Window=0 0 0 WindowText=255 255 255 Menu=0 0 0 MenuText=255 255 255 ActiveTitle=255 255 232 InactiveTitle=0 0 128 TitleText=0 0 0 ActiveBorder=255 255 232 InactiveBorder=0 64 0 WindowFrame=255 255 255 Scrollbar=128 0 0 ButtonFace=128 0 0 ButtonShadow=0 255 0 ButtonText=255 255 255 GrayText=192 192 192 Hilight=255 255 255 HilightText=0 0 0 InactiveTitleText=128 128 128 ButtonHilight=0 0 0 [NORAND 6805,LPT2.DOS] Paper Size=256 Paper Length=1450 Paper Width=480 Size Unit=1 [PrinterPorts] NORAND 4800=NOR4800,LPT1.DOS,15,45 NORAND 6805=NOR6805,LPT2.DOS,15,45 [devices] NORAND 4800=NOR4800,LPT1.DOS NORAND 6805=NOR6805,LPT2.DOS
A-12
PEN*KEY R 6100 Computer Programmer’s Reference Guide
APPENDIX A
Page 275
APPENDIX A
Sample Configuration Files
SanDisk Card with Stacker The following example demonstrates a configuration that uses a SanDisk card with Stacker and a custom CONFIG.SYS file. Place these files on the card: " " " "
EXAMPLE:
BOOTDRV.COM MMBFLAG.COM PC4800.SYS RESET.EXE
STACKER.COM " XCOPY.EXE " MYAPP/MYAPP.EXE "
Sample CONFIG.SYS BUFFERS=20 FILES=128
A. Sample Configuration Files
REM CardSoft drivers (IF USED) device=d:\cs\sselan.exe device=d:\cs\cs.exe device=d:\cs\csalloc.exe device=d:\cs\atadrv.exe /s:2 device=d:\cs\mtsram.exe device=d:\cs\mtddrv.exe device=d:\cs\cardid.exe device=d:\cs\norcsapm.exe device=d:\elanapm.exe device=d:\nordospm.exe Rem NORAND Card and Socket services drivers: devicehigh=d:\norcs\elancsss.exe devicehigh=d:\norcs\stabios.sys /r devicehigh=d:\norcs\nordata.sys device=pc4800.sys LPT1 1 /I1 device=stacker.com /p=1 E: install=d:\4000api.exe install=d:\mininet.exe
KEYS.INI (Key Remapping Parameter File) This listing is a standard key definition file included in the 6100 Tool Kit. It is a sample for you to modify, as needed. The numbers listed below the Plane" and the Shifted Plane" represent the key numbers for the keys on the 6100 Computer. Their physical positions shown below correspond to the physical positions of the keys on the 6100 keypad. " NOTE:
The key numbers, scan codes, and key definition columns may conform to your particular key layout. Adapt this to your unit. ;=========================================================================== ; 6100 keys are numbered as follows: ; Unshifted Plane ; 3 2 1 0 ; 7 6 5 4 ; 11 10 9 8 ; 15 14 13 12 ; Yellow Shifted Plane ; 67 66 65 64 ; 71 70 69 68 ; 75 74 73 72 ; 79 78 77 76 ; special scan codes: ; 0x6d Backlight On ; 0x6e Contrast Down PEN*KEY R 6100 Computer Programmer’s Reference Guide
A-13
Page 276
Sample Configuration Files
; ;
APPENDIX A
0x6f 0x70
Contrast Up Suspend
A. Sample Configuration Files
; NOTE: You cannot remap key 15 or 79 (the Yellow key) ;=========================================================================== ;Key # Scan Code ; Key Definition 0 = 0x0A ; 9 1 = 0x09 ; 8 2 = 0x08 ; 7 3 = 0x70 ; On/Off (Suspend/Resume, I/O) 4 = 0x07 ; 6 5 = 0x06 ; 5 6 = 0x05 ; 4 7 = 0x0F ; Tab 8 = 0x04 ; 3 9 = 0x03 ; 2 10 = 0x02 ; 1 11 = 0x0E ; BackSpace 12 = 0x1C ; Enter 13 = 0x0B ; 0 14 = 0x01 ; Escape 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
= = = = = = = = = = = = = = =
0x6D 0x6E 0x6F 0x38 0x51 0x48 0x49 0x47 0x4D 0x50 0x4B 0x34 0x4FC 0x0C 0x1D
; Backlight On/Off ; Contrast Down ; Contrast Up ; Alt ; Page Down ; Up Arrow ; Page Up ; Home ; Right Arrow ; Down Arrow ; Left Arrow ; Period “.” ; End ; Minus “–” ; Control
Setups for Third Party Applications This code may be helpful in setting up thirdĆparty applications, but keep in mind the thirdĆparty companies are the best sources for support for this subject. Some of the files required are located in the Tool Kit (such as the mouse and calĆ ibration programs), some are supplied with PenPal, and some can be separately purchased from Intermec Technologies Corporation. EXAMPLE:
Sample PenPal (DOS) Setup The following is an example of DOS code that could set up PenPal (DOS), through the use of an AUTOEXEC.BAT file. PATH a:\;d:\; rem *** Always put ELANAPM.EXE before ELANCFG *** ELANAPM.EXE REM Disable Video Memory writes as Activity D:/ELANCFG –V0 /H8 /L12 /D20 /T2 REM Load the handwriting recognition call PENDDSEM.BAT REM Load the PEN PAL modified pen driver 61MOUSE.COM REM Calibrate, if required. CALIB.EXE REM Run the sample PEN PAL program – Other sample programs may be chosen PPCP <APP.RUN>
A-14
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 277
APPENDIX A
Sample Configuration Files
Required Files " " " " " " " " " "
" "
EXAMPLE:
(PenPal control program) (If protected mode PenPal) (also load these files.) (Specific to the 6100 Computer) (Reg. file) (Pen driver program) (Calibration program) (For calibration program) (For handwriting recognition)
Sample PenRight! (DOS) Setup The following is an example of DOS code that could set up PenRight! (DOS), through the use of an AUTOEXEC.BAT. PATH a:\;d:\; REM Disable Video Memory writes as Activity D:/ELANCFG –V0 /H8 /L12 /D20 /T2 REM Load the modified pen driver SEST APIRSC=61PENRT.RSC REM Calibrate, if required. CALIB REM Run the sample PEN PAL program PENR!api /e /k /x=320 /y=240 PENR!hwp /e REM Start application APP.EXE
" NOTE:
PENR!API.EXE is not the same as one for a desktop computer. You need one that comes with a PenRight! machine.
Required Files " " " " " "
61MOUSE.RSC 61MOUSE.COM CALIB.EXE PENR!API.EXE PENR!HWP.EXE N6100.BGI
{Specific to the 6100 Computer) (Modified pen driver program) (Calibration program) (PenWrite application) (PenWrite Handwriting Recognition) (for CALIB.EXE)
Handwriting Recognition System Setup EXAMPLE:
Sample AUTOEXEC.BAT Code for Handwriting Recognition PATH A:/;D:\; REM Load the PEN PAL modified pen driver call PENDOSEM.BAT 61MOUSE.COM REM Run the sample PEN PAL program PPCP 6100.RUN PEN*KEY R 6100 Computer Programmer’s Reference Guide
A-15
A. Sample Configuration Files
"
PPCP.EXE DPM16BI.OVL RTM.EXE PPRCP.RSC PPCP.REG 61MOUSE.COM CALIB.EXE N6100.BGI EMULIX.EXE USGREC.EXP VLOAD.EXE EMM386.EXE PENDOSEM.BAT
Page 278
Sample Configuration Files
EXAMPLE:
APPENDIX A
Sample CONFIG.SYS Code for Handwriting Recognition shell=d:\command.com d:\ /e:512 /p device=d:\himem.sys /machine:2 devicehigh=d:\elanump.sys /x=C000,D400,D800,DC00,E000 device=a:\emm386.exe i=D400–EFFF FRAME=D400 device=d:\elanapm.exe devicehigh=A:\nordosppm.exe dos=high,umb break=on buffers=30 files=50
EXAMPLE:
Sample PENDOSEM.BAT Code for Handwriting Recognition
A. Sample Configuration Files
@ECHO off REM %1 is the prefix for all files here LH %1VLOAD %1USAREC.EXP LH $1EMUL1X SET PENDOS12=D9
APM Event Code Broadcast Values //–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– // APM 1.1 BIOS event codes. // These codes are broadcast to DOS TSR’s by the APM OS Driver. // System Standby Request Notification #define APM_STANDBYREQUEST 1 // System Suspend Request Notification #define APM_SUSPENDREQUEST 2 // Normal Resume System Notification #define APM_SUSPENDRESUME 3 // Critical Resume System Notification #define APM_CRITICALRESUME 4 // Battery Low Notification #define APM_BATLOW 5 // User System Standby Request Notification #define APM_USERSTANDBY 9 // User System Suspend Request Notification #define APM_USERSUSPEND 10 // User System Standby Resume Notification #define APM_USERSTANDBYRESUME 11 // Status Request – Ok to suspend? #define APM_STATUS 0xFF //–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– // Windows APM 1.1 event codes. These events are broadcast to the Windows // drivers and parent-windows by the Windows APM driver. Note that these codes // are one less than the corresponding BIOS codes. Also, only three codes, 1–3, // are actually defined in the current Windows 3.1 WINDOWS.H header file. // System Standby Request Notification #define PWR_STANDBYREQUEST 0 // System Suspend Request Notification #define PWR_SUSPENDREQUEST 1 // Normal Resume System Notification #define PWR_SUSPENDRESUME 2 // Critical Resume System Notification #define PWR_CRITICALRESUME 3 // Critical System Suspend Notification #define PWR_CRITICALSUSPEND 7 // User System Standby Request Notification #define PWR_USERSTANDBY 8 // User System Suspend Request Notification #define PWR_USERSUSPEND 9 // User System Standby Resume Notification #define PWR_USERSTANDBYRESUME 10 A-16
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 279
APPENDIX A
Sample Configuration Files
BGI Support N6100.BGI is in the 6100 Tool Kit, and it is a custom Borland Graphics InterĆ face. It develops Borland graphics based applications on the 6100 Computer. There are two ways to use this in a DOS application. The first is to keep the apĆ plication and the BGI driver separate. This requires loading the driver from your application. The calls to do this are documented in Borland C++ DOS RefĆ erence. Start with installuserdriver. This is the method used by Calib, described in this section. For details on how you may include this into your DOS application see the UTILS.TXT file that describes how to use the BGIOBJ converting utility. Also, see the registerbgidriver routine in the DOS Reference to apply this method. You will need the following files: "
N6100.BGI Real mode PENKEY.BGI driver N6100.H Interface file for use with the BGI driver
Using the N6100.BGI Driver The driver in" to the Borland BGI graphics library via the installuserdrivĆ er() function. Mode selection is done via a series of #define symbols in the N6100.H header file - note that the BGI DETECT autodetect logic does not work with this driver. The following modes are available from this driver: Resolution 230x240x4 240x320x4 EXAMPLE:
Symbol BGI_LANDSCAPE BGI_PORTRAIT
Init the driver in 320x240x4 mode: #include <graphics.h> #include “n6100.h” int driver, mode; driver = installuserdriver(“N6100”,NULL); /* do this only once */ mode = BGI_LANDSCAPE; initgraph($drvr,$mode,“”);
EXAMPLE:
Init the driver in 240x320x4 mode: #include <graphics.h> #include “n6100.h” int driver, mode; driver = installuserdriver(“N6100”,NULL); /* do this only once */ mode = BGI_PORTRAIT; initgraph($drvr,$mode,“”);
See the demo program TEXT.C, included in the Tool Kit, for an example of how to initialize and use the N6100.BGI driver. " NOTE:
Init and close the driver as many times as desired during a program run, but only call installuserdriver() once and save the value returned for use in subsequent initializations.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
A-17
A. Sample Configuration Files
"
Page 280
Sample Configuration Files
APPENDIX A
Bitmap Text Output The standard Borland BGI drivers do not fill the background color when rendering the bitmap font, which means the text must be erased before it can be written over, and erasure requires the use of the bar() function to clear the text area (text cannot be written over with new text or spaces). Most developers find this behavior troublesome. The N6100.BGI driver fills the background of bitmap text, eliminating tedious text erasure gyrations. This new textmode is set using the BGI setwritemode() function and passing the BGI_NIFTYTEXT constant (defined in N6100.H). To go back to normal BGI text rendering, pass BGI_NORMALTEXT to the setwritemode() function (which also seems troublesome). EXAMPLE:
A. Sample Configuration Files
Sample N6100.H File The following is a sample listing of the N6100.H file written by Ryle Design used as an interface for a BGI driver. /*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– Header N6100.H Header file containing public declarations for the Ryle Design N6100.BGI driver written for the Norand Corporation. Copyright (c) 1995 Norand Corporation Written by Ryle Design, PO Box 22, Mt. Pleasant MI 48804 USA Voice/Fax: 517.773.0587 Email: 73047.1765@compuserve.com V1.00 08.95 thl ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/ #ifdef __DPMI32__ #error N6100.BGI not supported under BGI32 #endif /* landscape mode flag */ #define BGI_LANDSCAPE
0x0000
/* rotated “portrait mode” flag */ #define BGI_PORTRAIT
0x0008
/* bitmap text modes */ #define BGI_NORMALTEXT #define BGI_NIFTYTEXT
0x0002 0x0003 void _Cdec1 n6100_driver(void); /* end header N6100.H */
A-18
PEN*KEY R 6100 Computer Programmer’s Reference Guide