The text of a manual · part 4 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Section 1: Getting Started, pages 23 to 32
Pages 23 to 32 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 23
Section 1
Getting Started "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Introduction If you are not familiar with the structure of the PEN*KEYR 6000 Series ProĆ grammer's Reference Guides, be sure to turn back to the introduction section and read Structure of the Book and Locating Information. Topic Summary Topic An Open System Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Introduction to the 6100 Computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool Kit for the 6100 Computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tips for Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reprogramming Flash Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . procedures for updating current flash version, a description of an INTERLNK session, and creating a custom flash Development Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . environments available for developing applications and some brief descriptions of applications supported for the 6000 Series computers Setup for PC Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . stepĆbyĆstep set up for development of 6100 Computer from the host PC Development Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PC Card Support including: NORAND Card and Socket services and SystemSoft Card and Socket services SanDisk Support Communications Using INTERLNK and INTERSVR RAM Drive Norand Utilities and Communications Other Intermec Software
Page 1-2 1-2 1-4 1-6 1-6 1-7
1-11
1-16 1-18 1-18 1-21 1-22 1-23 1-24 1-26
PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-1
1. Getting Started
This section contains information to help you become familiar with your 6100 Hand-Held Computer (HHC), so you can start building applications.
Page 24
Getting Started
SECTION 1
The following list may be of assistance in locating other topics of interest: List of Figures and Tables Figure / Table Figure 1-1, Location of Reset Button and PC Card Drives . . . . . . . . . . . . . . . . . Table 1-1, NORAND Card and Socket Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 1-2, CardSoft Files (SystemSoft) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 1-3, Initialization Files (SystemSoft) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 1-4, Card Libraries (SystemSoft) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 1-5, DOS Device Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 1-6, Windows Device Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Page 1-17 1-19 1-20 1-20 1-21 1-27 1-27
1. Getting Started
An Open System Environment The 6100 Operating System consists of standard MS-DOS, version 5.0, and WinĆ dows, version 3.1. One of the major benefits of this openĆsystem approach is that you can acquire development equipment and software from many different vendors, including Intermec Technologies Corporation. This provides you with wide latitude in seĆ lecting the equipment and software tools that are best suited to your particular development needs. The challenge lies in finding pieces that work well together, especially when you are working in the areas of communications and interfaces. If you have DOS and/or Windows programming experience, you will quickly feel comfortable with the PEN*KEY 6100 platform.
Introduction to the 6100 Computer From the viewpoint of an application, the 6100 Computer is like other PCs (386 33 MHz), with some exceptions, as described below.
How the Hardware is Different The 6100 Computer is a ruggedized, ergonomic, batteryĆpowered, touchĆbased computer, with input from finger touch, stylus, keyboard, or scanner. It has inteĆ grated communications and various combinations of external and/or internal peĆ ripherals. It is designed for a mobile environment.
Processor The 6100 Computer contains an AMD ELAN 386 33 MHz processor.
Display The 6100 Computer features a backlit, LCD, touchĆsensitive display. The normal mode is landscape, but most applications use a rotated screen (portrait mode). The physical display is the size of a 1/4 VGA (240 x 320 pixels). However, it uses a CGA controller.
User Input The keyboard consists of a builtĆin numeric keypad with control keys. Much of the user input is done using touch, pen, or barĆcode scanning. 1-2
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 25
SECTION 1
Getting Started
Power Management Advanced Power Management (APM) is critical. It contains one main battery and one backup battery. This combination of software and batteries provides a smart battery pack. Beginning with flash version 1.11, the following features have been added to the APM BIOS: Suspend/resume coordination (Suspend/resume key mapped to I/O key if IO2SUS.COM is loaded): " To work with NORAND Card and Socket services " For radio integration " Added OEM calls to match the portable APM specification " Updated fuel gauging to support all pack types " Updated idling functionality for lower runĆtime power A new power management system (with version 1.15) has improved the capabiliĆ ty of resuming or waking the terminal; and it is highly recommended for all 6100 Computers, and especially if you have a PC Card modem. "
B CAUTION:
This terminal has ONE primary power source, the MAIN Battery. The only function of the Backup Battery is to maintain power to RAM while changing Main Batteries. At all times during operation and while being stored (overnight, long periods of time, and even while in suspend), the unit must have its Main Battery installed.
The Main Battery is used, even in suspend mode, to maintain RAM, RTC, and CMOS settings. When the terminal is off charge, the Main Battery also supplies any needed charge to the Backup Battery. The Backup Battery is for emergencies only. The Backup Battery should not be relied upon, for extended periods, to support the system with no Main Battery. A unit with functioning Main and Backup Batteries can be left off charge overĆ night or for a long weekend. This presumes that it has a fully charged and funcĆ tioning Main and Backup Battery. " NOTE:
A discharged Backup Battery takes 14 hours to recharge. A discharged Main Battery takes 2 hours to recharge.
System Memory System memory is provided via DRAM and Flash memory modules. " "
"
" NOTE:
Flash memory provides storage for executable and system files. For flash versions prior to 1.11, flash memory can be expanded up to eight megabytes. It is expected that on a future release the flash will be availĆ able in larger amounts. For flash version 1.11 and later, a 1 megabyte flash was used. Currently, only a 1 megabyte configuration is supported.
If you upgrade a system that had a flash version prior to 1.11, you will also need to upgrade the flash. Refer to the Reprogramming Flash Memory instructions on page 1-7. " "
DRAM can be expanded up to 16 megabytes. An MS-DOS 5 RAM disk may be created out of DRAM for fast, temporary storage of data and program files. PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-3
1. Getting Started
Batteries
Page 26
Getting Started
SECTION 1
Input, Output, and Storage Devices More Varied PC Card Two PC Card type II slots, or one type III slots are available. These slots are for nonĆvolatile SRAM, flash or hard disk data storage, radio or land modems, or other devices. System resources, which are available to the applications, may also store on the flash drive. " NOTE:
Throughout this publication, cards that conform to the PC Card interface standard (the new standard), or the PCMCIA interface standard (the old standard), are commonly referred to as: “PC Card”, or “PC Card xxxxx” (where xxxxx consists of “ modem”, “drive”, or other device type). This is done because PC Card is rapidly becoming the accepted industry term for a storage medium that conforms to one of these standards.
1. Getting Started
Surface and Pin Connections These connections support battery charge, printers, scanners, and other periphĆ erals.
Infrared Printing IrDA printing is also available.
Serial Data Communications Communications takes place through standard UART ports.
Keep the System Environment in Mind The 6100 system environment should be kept in mind, while writing applications for it. The 6100 Computer has no external keyboard port, uses a flash memory file system, and has a builtĆin VGA viewing screen. Applications programmers need to remember the constraints listed previously, and the flash file system is usually kept writeĆprotected, to prevent overwriting.
The Hardware Ports For information relating to the communication ports, addresses, IRQs, and deĆ vices supported for these ports, refer to the Reference, System Information section of this publication.
Tool Kit for the 6100 Computer The file complement in the Tool Kit for the 6100 Computer differs from one release to the next. For an accurate list of Tool Kit files, refer to the RELNOTES.TXT file, included in the Tool Kit distribution package. The Tool Kit contains DOS and Windows resources for configuration, power manĆ agement, communications, and peripherals. Tool Kits are available, as follows: Part Number (P/N) 215-598-001 215-597-001 215-600-001 215-599-001 1-4
Description 6100 DOS (only) Tool Kit, WITH manual 6100 DOS (only) Tool Kit, WITHOUT manual 6100 DOS and Windows Tool Kit, WITH manual 6100 DOS and Windows Tool Kit, WITHOUT manual
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 27
SECTION 1
Getting Started
The files and documentation in the Tool Kit are available to purchasers of the 6100 Computer, who hold the following licenses: NORAND Operating System (P/N: 999-001-014) " MS-DOS and Microsoft Windows (P/N: 999-001-041) " MS-DOS (P/N: 999-001-042) The DOS Tool Kit requires a DOS license only. "
The 6100 Computer, as shipped from the factory, has preloaded flash memory with the files required for booting and telecommunicating. At a minimum, DOS 5.0 is preloaded In flash. To create the environment reĆ quired by your application software, select any other system files needed from the Tool Kit and copy them to the 6100 Computer.
The files necessary to run Windows and the application software are often loaded onto the RAM drive. The instructions included in the Tool Kit assume that you will install all files on the RAM drive. Other methods of arranging files are posĆ sible. And in some cases, this requires substitution of the appropriate drive letĆ ter, in place of D:, for the RAM drive.
File Integrity Verification Utility: CRC32.EXE The Tool Kit contains a utility, CRC32.EXE, for verifying the integrity of the files provided on the Tool Kit diskettes. CRC32.EXE calculates a 32Ćbit CRC value for a file. This value may then be compared with the factory CRC value for the file. Factory CRCs are found in the file CRC.ALL , also in the Tool Kit. Usage is as follows: CRC32 [@][filename | pathname] [/s] where: filename is the name of the file on which the CRC is calculated. One or more files or directories can be processed at one time. pathname is the location of the file to be processed. Wildcard processing is not allowed (in the pathname specified after the symbol, nor any of the pathĆ names within the argument file). A valid argument file has the same format as an argument for the IPLFMT.EXE program. /s indicates all subdirectories should be searched for matching file names. @ is (optionally) included in front of the filename to indicate it is an argument file, which contains names of files to be checked. Refer to the RELNOTES.TXT file in the Tool Kit for the CRC values for each of the modules used on the 6100 Computer.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-5
1. Getting Started
The Tool Kit does not include application software. You may obtain such softĆ ware from Intermec, from thirdĆparty suppliers, or you can design your own.
Page 28
Getting Started
SECTION 1
Tips for Getting Started
1. Getting Started
As applications are developed for the 6100 Computer (or port existing applicaĆ tions), keep in mind the following basic considerations, ideas, and suggestions: 1. ROM DOS 5 is the operating system, with Windows 3.1. 2. Understanding how the system configuration files are used in the 6100 enĆ vironment provides easier application development. These files include DOS configuration files: CONFIG.SYS and AUTOEXEC.BAT; and Windows configuration files: SYSTEM.INI and WIN.INI. 3. Become familiar with the tools and techniques for power management. Monitoring the state of battery power can be an especially critical function. 4. When developing for pen input, remember that interpreting handwriting is still a developing field; accuracy has not yet reached 100 percent. FurtherĆ more, interpreting and storing the results puts an additional load on the processor. Excessive use of handwriting recognition software can slow down an otherwise speedy application. Instead, try to use buttons, item lists, and pullĆdown menus for common tasks. 5. When designing a penĆcentric interface, use the area provided by the VGA screen. Make buttons, pullĆdown menus, text entry fields, etc. large enough for easy, accurate use in a mobile or highĆpressure environment. 6. Make your applications driveĆindependent. Do not hardĆcode drive designaĆ tions. Utilize the many available PC Card storage solutions, remembering that the devices can be moved about as required by different configurations. The PC Card slots can accept nonvolatile SRAM, flash, hard disk devices, RF devices, radio or land modems, and other devices. 7. Keep in mind the general system design of the penĆoriented 6100 ComputĆ er: flash memory file system, builtĆin CGA screen and keyboard, etc. 8. There are some files listed in this publication that could be useful for your configuration or application. If you need any of these files, first look in the Tool Kit for them. If not found there, try one of the Product Forums on the Intermec BBS. 9. Finally, for development purposes you may consider using certain external devices. Keep in mind whether these items are available (or practical) for the application to use in the field.
System Configuration Minimum Development Configuration Note that the following paragraphs apply to the standard configuration for the 6100 Computer; but keep in mind that it can be configured to meet your specific needs. Additional RAM can be obtained to bring total RAM to 2, 4, 8, or 16 MB. The following configuration items are needed for a minimum development, exĆ cept for items 4 and 5, which are only useful if you do not have a docking station. 1. PEN*KEY 6100 Computer, with two megabytes of system RAM for DOS (or 4 MB of system RAM for Windows) and 1 MB of flash RAM. 2. The DOS Tool Kit or the Windows Tool Kit for the 6100 Computer. 3. Main batteries: at least one. 4. One 2Ć or 4-MB SRAM card (see Note 1). You need at least one 2-MB SRAM card, which is useful when you need to update the flash software. For larger storage, SanDisk flash memory cards are available (see Note 2). 1-6
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 29
SECTION 1
" NOTE 1: " NOTE 2:
Getting Started
SunDisk has been changed to SanDisk. The 6100 Computer supports SRAM PC Cards natively, meaning, no extra device drivers to load. However, SanDisk cards are not supported through the 6100 BIOS and thus, need Card and Socket services to be loaded before they can be used.
5. PC Card reader/writer (for example, DataBook card readerĆwriter or noteĆ book computer that can read/write PC cards). 6. Cable for connecting 6100 Dock to a PC (NULL modem cable). 7. If printing is needed, cable for connecting dock to serial or 4815 Printer. 8. Single dock or wall charger.
The configuration files, CONFIG.SYS and AUTOEXEC.BAT, are required for an appropriate environment for the 6100 Computer. Some examples of configuration files, used to configure the 6100 Computer for DOS or Windows, are detailed in Appendix A, Sample Configuration Files.
Reprogramming Flash Memory " NOTE:
Always keep the 6100 Computer on charge while performing any setup, reprogramming, or reflashing.
Updating to Flash Version 1.16 or Later If you have a flash version older than 1.16, it is highly recommended that you obtain an upgrade to the latest version of flash. A selfĆextracting executable archive file, found in the Tool Kit contains the entire flash load. Run this executable from a temporary directory on a desktop PC. AfĆ ter running the executable, a file is produced that explains how to reprogram the flash (which is essentially the same information presented here). The selfĆextracting archive also contains 61FL1000.BIN, the 6100 Initial Flash Load (IFL) card image, and PROG.BAT, an automatic reflashing batch file. These two files create an IFL card, which in turn installs the flash image on 6100 Computer. " NOTE:
If you are updating from an older flash to version, and you have an 8 MB system, you must format the RAM drive to a size of zero. Otherwise the system may lockup. The only way to recover from this, once it occurs, is to remove the DRAM board.
DOS Configurations You must change the following: " " " "
All system files should be accessed from drive D: for IRDAPDRV, remove the -b??? switch and add the -x switch for ELANCFG.EXE, remove the /C /R switches. ELANCSSS.EXE is needed, no matter what kind of card you have PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-7
1. Getting Started
Sample Configuration Files
Page 30
Getting Started
SECTION 1
You now have the option to change the following: " " " " "
You can replace CardSoft drivers with NORCS drivers ATABIOS.SYS is needed for SanDisk support NORATA.SYS is needed for SanDisk support NORMOD.SYS is needed for modem card support ELANCFG.EXE, you can set the /L switch to a value greater than one.
Windows Configurations You should change the following: Power driver to NORWINPM.DRV " EMM to exclude range C000 to C3FF (if using NORCS drivers) " Pen driver from UCLKPEN.DLL to UCLKPEN.DRV You need to remove the following: "
1. Getting Started
" " "
SystemSoft drivers (if you are using NORCS drivers) MMSYSTEM.DLL all .WAV files (optional)
Prerequisites for IFL Card Creation The following items are required for creating an IFL card: "
" "
"
"
Disk file 61BCxxxx.EXE contains the new flash archive. The first two charĆ acters of the filename indicate the model number for the hardware configuĆ ration of the 6100 Computer. The next two characters indicate the upgrade configuration. For example, BC means Boot Card (IFL) version. The last four characters indicate the version of the flash. For example, 0116 would indicate flash version 1.16. A 2Ćmegabyte (or larger) SRAM card with battery installed. A PC Card reader/writer adapter (drive) for a standard PC, together with the associated software, or a PC that can access PC Cards. A standard PC for use with the PC Card reader/writer or a PC that can acĆ cess PC Cards. If the card drive is an external unit, you can use a laptop or notebook computer. The PROG.BAT utility and the 61FL1000.BIN.
Creating a Master Mode Boot (IFL) Card Use the PROG.BAT utility, included in the release package, to copy the IFL card image to the SRAM card by entering the following at the DOS command prompt: PROG 61FL1000.BIN d:
where is the drive letter of the PC card drive. This command copies the conĆ tents of 61FL1000.BIN to the SRAM card in the format needed to perform a master mode boot. After successfully creating the IFL card, writeĆprotect it. " NOTE:
" NOTE:
1-8
Do not use the DOS COPY or XCOPY command to create the IFL card. Master mode booting requires certain files at specific locations on the SRAM card. DD.EXE (which is part of the PROG.BAT process) is designed to place every byte in a specific location on the media; these DOS commands are not. The PROG.BAT file performs a write operation followed by a verify operation. It is possible for the write operation to succeed and the verify to fail. This is particularly true when using a DataBook TMD–500–03. If you are using such a card drive, this problem can be corrected by downloading updated drivers from the DataBook BBS.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 31
SECTION 1
Getting Started
Updating PEN*KEY 6100 Flash Preferred Approach
To boot the IFL card, place it in drive B (this is the drive closest to the display), then press the Reset button. Follow the prompts on the display to update the PEN*KEY 6100 Flash. To verify that you have updated the Flash, look for 6100 FLASH 61FL1000" and the current version number on the top line of the display when starting from the ROM drive D. See the release notes for information on changes in this version of Flash. Master Mode Boot Approach
To perform a master mode boot, insert the IFL card in drive B. Then, press and hold the Suspend/Resume key(I/O), while holding down the reset button. The screen displays Mode Boot" for a few seconds, while performing the memory test. (If you do not see Mode Boot", try to reset again.) Follow the prompts on the display to update the PEN*KEY 6100 Flash. To verify that you have updated the Flash, look for 6100 FLASH 61FL1000" and the current version number on the top line of the display when starting from the ROM drive D. See the release notes for information on changes in this version of Flash.
Creating a Custom Flash If necessary to create a custom flash for an application, a flash customization utility is available. Use the following procedure to create the custom flash: 1. Obtain the flash customization utility from the BBS 6100 forum. If you do not have access to this, contact your field technical support person to forĆ ward it on to you. This is a .zip file that has the file structure of the flash plus the BIOS files that need to be built into the image. 2. Extract this file with PKUNZIP using the -d option to a subdirectory on your hard drive, such as C:\6100\CUSTOM\. A subdirectory, FLASH, has been created. This is where you can modify files, add files and subdirectoĆ ries, and delete files. " NOTE:
Be aware! DO NOT attempt to add files beyond the 1 MB limit for disk space on the 6100 Computer. This does not check disk space for you.
For recommendation on usage of necessary power drivers to be loaded in the boot files, refer to the Power Management section, of this publication. It would be a good idea to modify the first line of the CONFIG.SYS with some comment about the version of your custom flash for easy reference. 3. Once the files in the FLASH subdirectory are the way you want them, run the RELEASE.BAT file in the root directory. This creates the file, 61FL1000.BIN. This is the image of the master mode boot program. 4. Using the included PROG.BAT batch file, program a 2M or larger SRAM card with the file, 61FL1000.BIN. This is located in the BOOTCARD subĆ directory in the flash on your 6100 Computer. For example, C:\NORAND\6100\FLASH\BOOTCARD> PROG ..\61FL1000.BIN E: PEN*KEY R 6100 Computer Programmer’s Reference Guide
1-9
1. Getting Started
It is possible to boot an IFL card even if the flash in your PEN*KEY has never been programmed or has been corrupted. Use this procedure if the preferred apĆ proach above does not work.
Page 32
Getting Started
SECTION 1
5. Now, place the 6100 Computer on EXTERNAL CHARGE. (Or verify that the battery is fully charged) This is a very important, because you canĆ not afford to lose power during this procedure. 6. Place the 2M SRAM card in the front slot (B:, the slot closest to the display) and press the reset button. 7. The 6100 Computer will boot from the card, and ask you to verify that you want to reflash the terminal. Once you press `3', the unit will reflash. When it is done, remove the card, and press the reset button again. 8. Verify that your new flash has been loaded. While RELEASE.BAT program is running, the file, 61FL1000.BIN, is created by IMAGE.EXE. Use the information below to configure your custom flash.
1. Getting Started
Imager for DOS, Version 2.2 Creates or modifies a disk image file. IMAGE imgfile [switches] [filelist] imgfile and the pathname of the image to create or modify. When creating a new file, specify the format and size using the switches below:
/BOOTSEC=pathname Specifies the pathname of a binary file used to define the logical boot sector. If this switch is not specified, a DOS 5.0 compatible boot sector with English error messages is supplied.
/DATE=mm/dd/yy[yy] When this switch is used, all files and subdirectories have their datestamp set to the supplied value. This switch does not affect the corresponding timestamp. If this switch is not supplied, the datestamp for all files and subdirectories is copied from the source and the datestamp for the volume label is set to today's date.
/FATS=[1|2] Normally DOS allocates two file allocation tables (FAT) as does this program. To conserve space in the image file, use one FAT instead of two.
/FILES=n Specify how many files can be stored in the root directory.
/FORMAT=[360|512|720|1024|1440|2048|2880|4096[K[B]]] Defines which disk format to use within the image. The default format is 720K.
/LABEL=[“]volume name[”] Defines the disk volume label. If not supplied, the image has no label.
/ORG=n[[K[B]] This switch changes which cluster is to next store data. All format parameters specified after an ORG switch are ignored.
/SPC=n Specify how many sectors per cluster to use. 1-10
PEN*KEY R 6100 Computer Programmer’s Reference Guide