The text of a manual · part 5 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Section 1: Getting Started, pages 33 to 42
Pages 33 to 42 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 33
SECTION 1
Getting Started
/TIME=hh:mm:ss When this switch is used, all files and subdirectories have their timestamp set to the supplied value. The corresponding datestamp is not affected. If this switch is not supplied, the timestamp for all files and subdirectories is copied from the source and the timestamp for the volume label is set to the current time.
/VOLSER=xxxx[–]xxxx Defines the volume serial number to be placed in the logical boot sector of the disk image. If this switch is not supplied a pseudoĆrandom volume serial number is generated.
@pathname pathname (with wild card characters) Any parameter other than those specified above is treated as a pathname of files that should be added to the image. When a subdirectory name is supplied, the entire subdirectory tree is added to the image. All format parameters specified after a pathname are ignored. Note that the only way to create a subdirectory is to add a subdirectory that has children subdirectories.
(a final comment) DOS environment variables can be used either on the command line or within an argument filename simply by enclosing the environment variable in percent signs as in .BAT files. For example %TEMP% evaluates to the current value of the TEMP environment variable.
Key Files Used in the Flash Upgrade Process The following files are necessary for reflashing a 6100 Computer: " "
FLASH.EXE FLASH.BIN
Writes data to flash Flash image that goes into flash
Development Environments The following development environments are supported on the 6100 Computer: Microsoft DOS 5.0 PenPal (DOS), by PenPal Associates, Inc. " PenRight! Pro (DOS), by PenRight Corporation Microsoft Windows 3.1 "
" " " "
Microsoft Pen Extensions, for Windows Microsoft Visual Basic, for Windows Borland Delphi, for Windows Microsoft Visual C++ or Borland C++, for Windows PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-11
1. Getting Started
Since the DOS command line is limited to about 128 characters, this switch proĆ vided so that switches may be specified in a file.
Page 34
Getting Started
SECTION 1
DOS The 6100 Computer can run any mouseĆaware DOS program using only DOS. The Tool Kit provides a DOS mouse driver (61MOUSE.COM), and is used with any mouseĆaware application, meaning the program runs in landscape mode. Screen rotation can be handled several different ways. Two examples are: " Using VROTATE.EXE and FONTSEL.EXE " For Borland graphics, using the BGI driver (for more information on this, refer to the DOS Pen Calibration paragraph, in the Supporting DOS ApĆ plications section, and the BGI Support paragraph, in Appendix A, Sample Configuration Files)
PenDOS Handwriter Recognition System 1. Getting Started
CIC's PenDOS Handwriter Recognition System is a DOS application. It is not included in the Tool Kit. A license for CIC's PenDOS (specific to the PEN*KEY 6000 Series computers) can be obtained through Intermec. To order PenDOS, contact a Intermec sales representative.
PenPal (DOS) Use PenPal to quickly draw screens and develop small, simple applications and prototypes. PenPal provides an easyĆtoĆuse interface for both experienced and relatively inexperienced programmers. It uses a simple proprietary language for defining the functionality of the application. PenPal was developed specifically for mobile systems. Because of this, it is of a manageable size for a 6100 ComĆ puter. PenPal handles dBase, ASCII, and text files. " NOTE:
PenPal Associates no longer provides enhancement support for PenPal in the environment in which PEN*KEY 6000 Series Computers operate, except for bug fixes. This means if you continue to use PenPal with the display configuration in which your 6100 Computer was shipped, it continues to serve you well; but, if you want to use PenPal with a different display configuration, PenPal Associates will not necessarily provide you with a version that works with your configuration.
For an example of setting up PenPal (DOS), refer to the Setups for Third Party Applications paragraph, in Appendix A, Sample Configuration Files. PenPal runs with CIC's Handwriter for PenDOS, or with no recognizer. With no recognizer, signature capture is available and character recognition is disabled. PenPal runtime licenses (specific to the PEN*KEY 6000 Series computers) can be obtained through Intermec. To order PenPal runtime licenses, contact a InĆ termec sales representative. PenPal development packages can be ordered from the manufacturer, PenPal Associates. For an example setup for Handwriting Recognition System, refer to paragraph, Handwriting Recognition Setup, in Appendix A, Sample Configuration Files.
PenRight! Pro (DOS) PenRight! is a development environment that also includes screenĆdrawing capaĆ bility, as well as C code. These tools make it possible for an experienced C proĆ grammer to add extra functionality to an application. PenRight! Pro was also developed specifically for mobile systems, and creates programs of a manageable size for a 6100 Computer. PenRight!, which is slightly harder to use than PenĆ Pal, has dBase support, as well as ASCII text files. PenRight Pro! development kits can be obtained through the manufacturer, PenRight!. For an example of setting up PenRight! (DOS), refer to the Setups for Third Party Applications paragraph, in Appendix A, Sample Configuration Files. 1-12
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 35
SECTION 1
Getting Started
Windows The 6100 Computer can run any mouseĆaware Windows application. Note that the Windows configuration provided by Intermec is not a fullĆfeatured Windows. You may find that files you need have not been included. Add the files if needed. Borland's C compiler includes a utility called TDUMP. You can run TDUMP on an executable file to display the files or libraries called by the executable.
Handwriting Recognition If handwriting recognition is required, there are two options available. One opĆ tion is provided by a product from Communication Intelligence Corp. (CIC); the other option is provided by a product from Synaptics. For descriptions, refer to the CIC Handwriter Recognition System for Windows paragraph and the SynapĆ tics Handwriter Recognition HR-1200 paragraph, on page 1-13.
Standard and Enhanced modes for Windows are discussed the in Memory OverĆ view topic, in Appendix B, Common PEN*KEY 6000 Series Information. Contact your Intermec sales representative to order software and manuals. Any of the following handwriter recognition packages can be ordered: Manufacturer: Communication Intelligence Corp. (CIC) Software: Handwriting Recognition System for Windows Manufacturer: Synaptics Software: Handwriting Recognition HR-1200 CIC Handwriter Recognition System for Windows
This system is a fullĆfeatured recognizer which includes a that provides a means to train the recognizer to better recognize your handwriting. " NOTE:
This product only works in the ENHANCED mode.
This software also requires numerous files to be installed, about 720K bytes of disk space. Once loaded, it recognizes handwriting in any text field. In addition, it recognizes standard Pen Extensions for Windows 1.0 gestures. Synaptics Handwriter Recognition HR-1200
This system is a more limited recognizer. It requires only one file to be installed, which is about 200K bytes in size. It can run in standard or enhanced mode Windows. It only recognizes handwritĆ ing in boxed or hashed edits, which are Pen Windows controls. Boxed edit (bEdit) looks similar to the following, and each letter goes in a box:
Hashed edit (hEdit) looks similar to the following, and each letter goes in a slot:
PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-13
1. Getting Started
If signature capture (bit maps) is required, but handwriting recognition is not required, this can be done with regular Windows. Simply trap the mouseĆmove and mouseĆpressed events and manually draw the ink. The ink then can be saved as bit maps and compressed, if necessary. Microsoft Visual Basic ProfesĆ sional Edition has an example of ink" in this way. The extra files for enabling the Pen Extensions are provided in the Tool Kit.
Page 36
Getting Started
SECTION 1
A Pen Extensions for Windows program, PENPAL.EXE, (or Pen Palette) makes use of the hashed edit, and can enable applications that are not written for handĆ writing recognition. This program allows a user to write in the boxes, then send the characters to the application with the current focus. This file and the Pen Extensions for Windows files can be found on the fourth diskette of the Tool Kit.
Pen Extensions for Windows Pen Extensions for Windows consists of standard Windows with extra files, some changes to SYSTEM.INI, and a new file called PENWIN.INI. Pen Extensions for Windows provides character recognition and an easier interface for capturing ink. A handwriting capture engine must be purchased separately, either through Intermec or other sources.
Keyboard Options 1. Getting Started
Even though the onscreen keyboard, SKB.EXE, from Microsoft Windows for Pen Computing is available in the Tool Kit, it is too wide for the PEN*KEY 6100 porĆ traitĆsize screen. If you need an onscreen keyboard, you could write your own keyboard application or consider ordering another keyboard application that runs in portrait mode. The Configurable PEN Popup Keyboard from Intermec is one that is suitable for portrait screens, and was created to provide a universal means of enabling keyĆ intensive operations for any of the NORAND pen computers (such as the 6100 Computer). It runs on any Windows 3.1Ćcompatible system that supports Pen Windows. It is totally configurable and uses a tabbedĆnotebook metaphor, where each notebook tab represents an independent, configurable subĆkeyboard. A file (.INI) configures the keyboard. The keyboard kit contains default .INI files for several of the PEN*KEY 6000 Series Computers, including the 6100 Computer. The keyboard automatically creates the proper number of tabs based upon the contents of the .INI file. The legends that appear on the tabs are userĆdefined. The tabbed notebook metaphor permits a large, complex keyboard to be subdiĆ vided in any way desired, which minimizes the screen space required when the keyboard is active. All Windows key functions are supported except for multiple shifts (e.g., Ctrl+Alt+F1). For each keyboard you can specify the Windows font, basic key cell size, key layout, any combination of doubleĆwide and doubleĆhigh keys, the legend displayed on the key for normal, shifted, AltĆshifted, and CtrlĆ shifted operation, and the key sequence that is sent to Windows. This means that the keyboard can be configured to send macros of up to 255 characters each, each of which can be sent by pressing a single key. The User's Guide and software comes in one package using the following part number: P/N 215-601-001. See your Intermec sales representative for informaĆ tion on licenses and pricing.
Microsoft Visual Basic for Windows Microsoft Visual Basic (VB), for Windows, is an easyĆtoĆuse tool that lends itself to quick creation of prototype screens for customer demos and reviews. It inĆ cludes screen drawing plus an easy method for inserting code to control the apĆ plication. A few warnings, however, are in order. If frequently used forms are not preloaded, the screen drawing may be slow. Also, the dataĆaware controls are very nice, but supporting a database with these controls consumes a lot of memory. VB can handle a large number of databases, including dBase, Access, Paradox, and Foxpro. It can also handle ASCII and text files.
1-14
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 37
SECTION 1
Getting Started
When you encounter a Visual Basic program, you should be aware of some comĆ mon requirements. "
"
"
" NOTE:
All Visual Basic applications require VBRUNxxx.DLL, where xxx correĆ sponds to the version of Visual Basic used to develop the application (e.g., VBRUN300.DLL is required for applications developed under VB V3.00). Files with the VBX extension are Visual Basic custom controls. These files support common features (such as command buttons, list boxes, pen edit boxes, dataĆaware controls, etc.) that are frequently seen in Windows apps. They are typically distributed with the application that requires them. Programs written in Visual Basic V4.0 or higher must be compiled in 16Ćbit mode; PEN*KEY 6100 Windows does not support 32Ćbit mode programs.
Be aware that the 6100 Computer is a 386-based system. Performance with Visual Basic may be an issue, especially with the latest Visual Basic offerings.
Delphi is a Borland product that allows quick application development with PasĆ cal support.
Microsoft Visual C++ or Borland C++ for Windows These are tools for experienced C Windows programmers. The foundation class libraries or the object windows library can be used; just make sure to keep an eye out for space limitations. Windows programs, in general, grow to a large size quickly and require a lot of extra DLLs or VBXs.
Other Environments Obviously, any development environment, that runs on the aforementioned operĆ ating systems, may potentially be used to develop software for the 6100 ComputĆ er. However, not all of the development environments will necessarily work as well, nor are they recommended. This is mainly, because of size and speed limiĆ tations of the 6100 Computer.
Some Screen Considerations Some of the standard Windows dialog boxes are too large. For example, the file open dialog does not fit. Running in landscape mode requires a different display driver, VGAP.DRV. This is the standard display driver for Windows and is not customized to the smaller screen of the 6100 Computer. You need to make changes in the SYSTEM.INI file for correctly aligning the pen. Look in the [Pen Driver] section of SYSTEM.INI. Refer to the 6100 forum on the BBS for more details and a sample configuration.
Some Keyboard Considerations Even though the onscreen keyboard from Pen Windows (SKB.EXE) is available in the Tool Kit, it is too wide for the portraitĆsize screen on the 6100 Computers. Since it is impossible to use both landscape and portrait modes within the same application in Windows, it is not advisable to run SKB.EXE in landscape mode. If you need an onscreen keyboard that runs in portrait mode, you may either write your own keyboard application or consider ordering another keyboard apĆ plication. You might want to consider the Configurable Pen Popup Keyboard available from Intermec, for an extra charge. The part number for this product is P/N 215-601-001. Documentation is included. PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-15
1. Getting Started
Borland Delphi for Windows
Page 38
Getting Started
SECTION 1
Some System Guidelines
1. Getting Started
There are other usable development environments. Here are some guidelines that can help to determine whether a particular environment is viable for a 6100 application. 1. How much space is required? Many environments assume that the target machine is a desktop or laptop with virtually unlimited hard drive space. This is certainly not the case with a handĆheld computer; memory is still at a premium. For example, Power Builder is a very popular environment for development. However, just to get an application started, Power Builder uses more than three megabytes of DLLs in addition to Windows just to run the Hello World proĆ gram. Power Builder applications tend to be large and slow; at this time, it is not recommended. 2. (Windows) How are the dialogs being stored? This is a question you must ask if you want to use a tool that provides one environment for both DOS and Windows applications. If the dialog inforĆ mation is stored as separate files, you will find it very hard to get adequate response time for drawing the screens. Also, some of these tools insulate you from the Windows APIs; consequently, it becomes very difficult to use any of the APIs that are provided for you. 3. The 6100 Computer uses a 33 MHz 386 processor. Test the performance of your application on a comparable computer. " NOTE:
A typical development machine (60 100 MHz 486) hides some speed issues that is evident on a slower 386 machine.
Setup for PC Development " NOTE:
Always keep the 6100 Computer on charge while performing any setup.
The following steps outline a general approach for equipment setup: 1. Connect power to the single dock. 2. Connect a NULL modem cable between the dock and a serial port on the desktop or portable PC. 3. If the PC Card slots contain cards, remove the cards. 4. Install the main battery. 5. Insert the 6100 Computer into the dock. 6. As the 6100 Computer starts the boot process, you will hear one of the following beep signals: " one beep: boot files are moved into shadow RAM from an SRAM card in drive B: (master mode boot cycle) " two beeps: shadow RAM receives files through a download process through a communications port. " three beeps: shadow RAM receives files from flash memory. 7. Verify that the 6100 Computer has booted. It should show a box with UTILITIES" at the top. If this is not the case, then press the reset switch on the 6100 Computer. The reset switch is located under the top lid, to the left of the PC Cards, near the front eject button (slot 1). For a diagram showing the location of the reset button and PC Card drives, refer to Figure 1-1, page 1-17. 1-16
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 39
SECTION 1
Getting Started
8. After the initial double beep, hold the [I/O] key down until the following ROM DOS 5 from" menu comes up. ROM DOS 5 Start from: 1) Memory card 1 =A: 2) Memory card 2 =B: 3) RamDrive =C: 4) RomDrive =D:
Press option 2 to select a communication option from a drop down menu, then press option 1 from the main menu to initiate a communication sesĆ sion. For getting started, the most common option is to use INTERSVR. For a complete description of navigating the screens in the Norand Utilities program, refer to the PEN*KEY Model 6100 User's Guide. 11. Prepare the CONFIG.SYS and AUTOEXEC.BAT files for initial program load. For an example CONFIG.SYS file or an example AUTOEXEC.BAT file, refer to Appendix A, Sample Configuration Files. At a minimum, the CONFIG.SYS file needs the following lines: device=d:\elanapm.exe device=d:\nordospm.exe
The content of these configuration files depends on the type of application being loaded. Examples for DOS and Windows can also be found on the Tool Kit diskettes. 12. Using one of the communication options, described later in this section, transfer the application program files to the 6100 Computer. Following a successful communication session, the Norand Utilities program executes the application program files.
3
1 2 1. Drive B: (upper) PC Card slot 2. Drive A: (lower PC Card slot 3. Reset switch
Figure 1-1 Location of Reset Button and PC Card Drives PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-17
1. Getting Started
9. Press the key to choose option 4. The 6100 Computer should boot to the Norand Utilities screen. 10. Press YES at the Norand Utilities copyright screen to open the main menu. The Norand Utilities program supports a variety of communication options for loading application programs. Each option is explained later.
Page 40
Getting Started
SECTION 1
Development Resources This paragraph covers the following topics: Topics PC Card Support NORAND Card and Socket Services: ELANCSSS.EXE
Page 1-18 1-18 configurations, usage, and descriptions of NORAND Card and Socket files
SystemSoft Card and Socket Services
1-20 descriptions of the SystemSoft Card and Socket files
1. Getting Started
SanDisk Support Communications Using INTERLNK and INTERSVR RAM Drive Norand Utilities and Communications Norand Utilities Download Include Files NPCP Network TTY ACN Other Intermec Software DOS Device Drivers Windows Device Drivers APM BIOS Installation (DOS) DOS Pen Calibration (CALIB.EXE) Windows Pen Calibration (PENALIGN.EXE) DOS Batch File Enhancers
1-21 1-22 1-23 1-24
1-26
PC Card Support NORAND Card and Socket Services: ELANCSSS.EXE Support for the AMD ELAN PC card (accessory card) controller is provided via the NORAND Card and Socket services product, ELANCSSS.EXE. This product is configured, integrated, and tested in the 6100 Computer, and supports ATA and COM cards on the 6100 Computer. It is used in conjunction with PC card device drivers that use card services. For a listing of the full PC Card socket and card services support, refer to the RELNOTES.TXT file in the Tool Kit. ELANCSSS is used if you need to access ATA or modem cards. If you are using ATA cards, you must also load ATABIOS.SYS, then NORATA.SYS, in that exact order. For details of ATABIOS.SYS device driver, refer to the ATA BIOS paragraph, in the Conversions and Interfaces section. If you are using a modem (landline or wireless), then you need to load NORMOD.SYS. For details of NORMOD.SYS device driver, refer to the Docks and Modems paraĆ graph, in the Communications and Device Support section. 1-18
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 41
SECTION 1
Getting Started
EXAMPLE:
The following is an example for ELANCSSS.EXE usage: device=d:\norcs\elancsss.exe
EXAMPLE:
The following are examples for SanDisk usage: device=d:\norcs\atabios.sys /r device=d:\norcs\norata.sys
EXAMPLE:
The following is an example for PC Card modem usage: devicehigh=d:\norcs\normod.sys /c4 /s /d 16b 21 20 where: /c4 = install as COM4 /s = save and restore UART values for COM4 on SUSPEND/RESUME /d m n t = delay t ticks (where m = man code and n = man info) 16b 21 = refers to the Erickson PIA radio
Under the FORMAT RAM DRIVE option, the drive letter of the RAM drive is deĆ termined by its media type. SRAM cards are recognized as drives A and B. ATA cards are recognized as drives E and F. If you select the option to format an SRAM card, when an ATA card is actually in the slot, you will get an Error code 4 (invalid media).
NORAND PC Card Files The following list contains a brief description of each of the files in the integrated and tested distribution: Table 1-1 NORAND Card and Socket Files File ATABIOS.SYS
ELANCSSS.EXE NORATA.SYS NORMOD.SYS
Description A PC card device driver. It identifies and configures cards with a device ID of 0Dh and a function code of 4 (FIXED_DISK_CARD) and takes over the INT 13 interĆ face for these cards. It is used with NORATA.SYS (see the ATA BIOS paragraph, in the Conversions and Interfaces section, for details. The NORAND Card and Socket services product. It is smaller, faster, less costly, and better power coordinated than SystemSoft. The SystemSoft services are also inĆ cluded with the 6100 Computer. A DOS block device driver for removable hard disk media, for SanDisk support. Loaded when you want to use a modem. This includes landline and wireless modems.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-19
1. Getting Started
NORAND Card and Socket services can replace CardSoft completely.
Page 42
Getting Started
SECTION 1
SystemSoft Card and Socket Services CardSoft files (by SystemSoft) were used in early releases, and can continue to be used. The SystemSoft files are available in the D:\CS directory on the 6100 Computer. They are not loaded, by default. The following is a list of those files and their descriptions: Table 1-2 NORAND Card and Socket Files File ATADRV.EXE /s:2
1. Getting Started
ATAINIT.EXE CARDID.EXE CARDINFO.EXE
CS.EXE NORCSAPM.EXE CSALLOC.EXE MTDDRV.EXE MTSRAM.EXE SSELAN.EXE
Description A block device driver that supports ATA type II flash or ATA type III hard disk PC Cards. ATA drives are allocated the drive letters of E: and F: when this driver loads. The /s:2 option installs this ATA driver as a slave to the memory technolĆ ogy driver (MTDDRV.EXE) that follows, thus preventing the creation of new drive letters as additional memory technology drivers are installed. With this approach, all memory technology can be referenced as E: and F: for PC Card slots 0 and 1. is a lowĆlevel format for SanDisk cards. It places a hard disk partition table onto a blank ATA drive. This utility initializes the ATA drive as FDISK does with a standard hard drive. Note: use with CardSoft drivers only Client device driver for the configuration of the PC Card slot/adapter and card on card insertion detection. Also frees allocated system resources upon detection of card removal. helps diagnose problems with cards by verifying if the card is recognized. It is a DOS utility that scans the PC Card slots on the system and lists information about the cards in the slots. It also lists any warnings or error messages that may have occurred during the configuration of the cards by the CardSoft drivĆ ers. Note: use with CardSoft drivers only. Card services driver to manage the configuration of the system PC Card resources. Enabling TSR for communication between power management and card services software for the correct processing of suspend/resume requests. Resolution and assignment of system memory, I/O port, and IRQ resources for card services. Memory technology driver that supports PC Card SRAM cards through the MTSRAM.EXE driver and allows for the sharing of letters between the different types of memory cards (SRAM and ATA). Memory technology driver for PC Card SRAM cards. Standard Socket Services driver interface to the ELAN host controller chip. Table 1-3 Initialization Files
File CARDID.INI CSALLOC.INI
1-20
Description Default settings for card identification Used by CardSoft to determine which system resources may be used by PC Cards
PEN*KEY R 6100 Computer Programmer’s Reference Guide