The text of a manual · part 11 of 19
Falcon DOS Portable Data Terminals Advanced User's Guide, pages 101 to 110
Pages 101 to 110 of 184
The original document is the PDF (7.1 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 PSC 335, PSC 340, PSC 345, Datalogic 335, Datalogic 340 and Datalogic 345
Page 101
System Configurations Figure 5-8: Autoexec.bat File on Drive C for Default Configuration REM --------------------------------------------------------REM --- The following lines set up default parameters for some REM --- environment variables. These lines may be modified or REM --- overridden in the USER section below. REM --------------------------------------------------------set prompt=$p$g set dircmd=/ogn /p REM --------------------------------------------------------REM --- The following section is for customized user entries. REM --------------------------------------------------------REM --------------------------------------------------------REM --- Insert user-specific options and commands here. REM --------------------------------------------------------REM --------------------------------------------------------REM --- The following lines add system components to the PATH REM --- and run the main application executable, if one was REM --- specified. REM --------------------------------------------------------IF EXIST c:\bparams.ini copy c:\bparams.ini PARAMS set path=c:\;c:\dos;%path% c: cd\ upgstart
I/O PC Card Support Configuration The Falcon Configuration Utility has an option for support of I/O cards. This option will download the Phoenix Super Client Driver (pcmscd.exe) to the C:\PCM subdirectory on the Falcon. It will also add the command for loading of this driver to the config.sys file. The config.sys and autoexec.bat files below were created by eliminating ATA card support and adding I/O card support to default.cfg. Figure 5-9: Config.sys File on Drive C for I/O PC Card Support FILES = 30 REM --------------------------------------------------------REM --- Phoenix Card and Socket services for accessing PC Cards REM --------------------------------------------------------device = c:\pcm\cnfignam.exe /NORMAL device = c:\pcm\pcmssit.exe device = c:\pcm\pcmcs.exe device = c:\pcm\pcmscd.exe
Advanced User’s Guide
5-9
Page 102
Disk Drives, Organization, Software, & Configurations Figure 5-10: Autoexec.bat File on Drive C for I/O Card Support REM --------------------------------------------------------REM --- The following lines set up default parameters for some REM --- environment variables. These lines may be modified or REM --- overridden in the USER section below. REM --------------------------------------------------------set prompt=$p$g set dircmd=/ogn /p REM --------------------------------------------------------REM --- The following section is for customized user entries. REM --------------------------------------------------------REM --------------------------------------------------------REM --- Insert user-specific options and commands here. REM --------------------------------------------------------REM --------------------------------------------------------REM --- The following lines adds system components to the PATH REM --- and runs the main application executable, if one was REM --- specified. REM --------------------------------------------------------IF EXIST c:\bparams.ini copy c:\bparams.ini PARAMS set path=c:\;c:\dos;%path% c: cd\ upgstart
5-10
Falcon® DOS Portable Terminals
Page 103
6 System Utilities
CHAPTER CONTENTS Chapter Conventions...............................................6-2 CFGDEV.SYS .............................................................6-2 CFGIO.EXE ...............................................................6-3 COMIO.COM ...........................................................6-3 DECODE.SYS............................................................6-4 FLASHDSK.SYS.........................................................6-5 FORMAT.COM .........................................................6-5 LOCK.COM...............................................................6-5 ORGANIZE.COM.....................................................6-6 PM.COM ...................................................................6-7 VDISK.SYS .................................................................6-8 XFER.EXE ..................................................................6-8
Page 104
System Utilities
Chapter Conventions This chapter describes some of the device drivers and utilities that are designed to be run on a Falcon unit. Where applicable, command syntax and parameters are given. Parameters may be supplied using either uppercase or lowercase letters, and the hyphen (-) may be substituted for the forward slash (/).
CFGDEV.SYS The cfgdev.sys file is located on drive B of the Falcon unit. When cfgdev.sys is loaded by the config.sys file on that drive, a logical character-based device called PARAMS is created. This device receives programming strings that modify the configuration parameters that control the behavior of several system components. There are three ways programming strings can be sent to the PARAMS device: z Bar Code Special bar code labels beginning with $+$- and ending with EE can be scanned using any bar code scanning device. Appendix D contains many useful labels. z File Copy Files containing the bar code programming strings can be created and copied to the PARAMS device. The Falcon Configuration Utility creates a file called bparams.ini that contains all of the configuration settings. The autoexec.bat file on the Falcon’s drive C contains the following command: IF EXIST c:\bparams.ini copy c:\bparams.ini PARAMS which copies the bparams.ini file to PARAMS. A new file may also be created which contains the configuration settings. Example: To use the D2 defaults with the CTL-ALT-DEL key sequence disabled, complete the following steps: 1.
Create a myparams.ini file with the following text: $+$-D2E00EE D2 sets the D2 defaults, and E00 disables the CTL-ALT-DEL key combination.
2.
6-2
Copy myparams.ini to the PARAMS device using the following DOS command: COPY MYPARAMS.INI PARAMS
Falcon® DOS Portable Terminals
Page 105
Chapter Conventions z
Run-Time Library API The API in the Falcon run-time library contains two function calls that allows configuration strings to be sent to the PARAMS driver from within a C application. See CFG_Write( ) and CFG_Read( ) in the Falcon DOS Portable Terminals Programmer’s Reference.
Attempts to create, delete, or modify a file called params will conflict with the PARAMS device. The loading of cfgdev.sys cannot be eliminated except through the safe-boot process (refer to page 7-4).
CFGIO.EXE The cfgio.exe utility changes the current font set or the current keypad mapping to be used by the system (or both). This is primarily to be used for loading support of alternate keypad overlays and fonts for international use. The new settings will take place only if the font set and keypad mapping are compatible. Syntax CFGIO [fontfile] [keymap] Options fontfile Specifies the name of the file containing the new font set to be loaded into the system. Font files have the extension fnt. keymap
Specifies the name of the file containing the new keypad map to be loaded into the system. Keypad map files have the extension kbd.
COMIO.COM This utility provides an easy means for developers to interact with the portable by allowing video and keyboard interaction to be done at a host PC. It does this by controlling redirection of video and keyboard I/O through the portable's serial port COM1. When keyboard redirection is disabled, input is received from the portable's keypad; when it is enabled, input is taken from the
Advanced User’s Guide
6-3
Page 106
System Utilities portable's serial port. The same mode of operation applies to video output, which is sent to either the Falcon viewport or out the serial port. When redirecting video output, keypad input, or both, Falcon’s serial port must be connected to a host computer. The host computer should be running a basic terminal emulator that provides a direct connection to the host communications port. The host communications port settings should be: no parity, 8 data bits, 1 stop bit, and the baud rate specified in the comio.com command line. By default, both video and keyboard I/O are redirected, but either one may be changed independently. Syntax COMIO [/b#] [/h] [/k] [/v] /b#
Specifies the baud rate to use. If not specified, the current baud rate is used. /h
Displays a help file for the utility. /k
Changes keyboard redirection only. /v
Changes video redirection only.
DECODE.SYS This driver controls bar code scanning devices and decodes bar code labels into text. If special programming bar codes are read, the decoded information will be sent to the PARAMS device (refer to CFGDEV.SYS, on page 6-3). Otherwise, the resulting text is placed in the keyboard buffer for use by the application. Decode.sys is located on drive B of the Falcon unit and is loaded by the config.sys file located on that drive. The loading of decode.sys cannot be eliminated except through the safe-boot process (refer to page 7-4).
6-4
Falcon® DOS Portable Terminals
Page 107
Chapter Conventions
FLASHDSK.SYS This driver configures all of the unit’s available flash memory as a read-write disk, called a flash disk. Reading from a flash disk is fast, but writing can be somewhat slower. This driver is located on the Falcon’s B drive and is loaded by the config.sys file located on that drive. The loading of flashdsk.sys cannot be eliminated.
FORMAT.COM This utility formats a read-write disk drive. Only the flash and RAM drives may be formatted using this command. Format.com uses the existing drive parameters to recreate the drive, but without any files stored on it. This provides a quick method for cleaning out an existing drive. Syntax FORMAT [drive:] [/y] Options drive Specifies the letter of the drive to be formatted. If a drive letter is not specified, the current drive is used. /y
Suppresses output from being sent to the display, and bypasses the usual prompt to proceed with formatting.
LOCK.COM Use this utility to enable or disable write protection on flash or RAM drives. (This is the software equivalent of the write-protect tab on a floppy disk.) Use lock.com to protect against accidental erasure of all files stored on a disk. Whenever the Falcon is rebooted, write protection on a drive will be disabled, by default. To lock the drive upon bootup, include a lock command in the autoexec.bat file on drive C.
Advanced User’s Guide
6-5
Page 108
System Utilities
Syntax LOCK [drive:] [/l] [/u] [/y] Options drive Specifies the drive letter of the drive which is to be locked or unlocked. If a drive letter is not specified, the current drive is used. /l (the letter L)
Lock the drive to prevent further disk writes. /u
Unlocks the drive, allowing further disk writes. /y
Suppresses output from being sent to the display. If both the /l and /u options are given, the last option specified will take effect.
ORGANIZE.COM This utility reorganizes sectors on a flash drive to improve flash disk access. Data is relocated so that all free sectors are grouped together, reducing the overhead of freeing space for new data. Organize.com has a greater effect on a flash disk as the disk gets closer to being full. The flash disk created with the flashdsk.sys driver is the only Falcon drive that can be organized with this utility (refer to page 6-7). ATA flash drives will not respond properly to this utility.
Syntax ORGANIZE [drive:] [/y] Options drive Specifies the drive letter of the flash drive that is to be reorganized. If a drive letter is not given, the current drive will be used. /y
Suppresses output from being sent to the display. 6-6
Falcon® DOS Portable Terminals
Page 109
Chapter Conventions
PM.COM Use this utility to control various power-management features of the Falcon.Use it at the command line or in a batch file (including autoexec.bat) to set or read power-management settings. Syntax PM [/b#] [/f#] [/h] [/i] [/r] [/t#] Options /b# Sets the automatic timeout for the backlight. Replace the # symbol with the number of seconds to wait after a keypress before automatically turning off the backlight. Each keypress restarts the timeout countdown. The range of acceptable values for # is 0 (off ) to 255; the default is 15 seconds. /f#
Sets the time interval for audio indication when the batteries are low. Replace the # symbol with the number of minutes between soundings of the tone. The tone will not sound until the battery has been in the low state for the same number of minutes. The range of acceptable values for # is 0 (off ) to 255; this option is off by default. The audio warning uses extra current, causing the batteries to drain faster. This interval should be set for as long as possible or should not be used at all. /h
Displays a help file for the utility. /i
Displays timer settings for auto-off, backlight timeout, and low-battery audio indication. /r
Resets power management to the cold-boot defaults. /t#
Sets the auto-off timeout. Replace the # with the number of seconds of nonuse before the unit should move to its lowest power state. The range of acceptable values for # is 16 to 1032, or 0 for off; the default is 300 seconds (5 minutes).
Advanced User’s Guide
6-7
Page 110
System Utilities
VDISK.SYS This driver configures some of the unit’s available random access memory (RAM) as a read/write disk, called a RAM disk. This driver is located on Drive B of the Falcon unit and is loaded using the config.sys file located on that drive. On 31x models, all of the Extended Memory on the unit (either 1 or 3 MB) is used to create a single disk (Drive D). On all other models, only the first 1MB of Extended Memory is used to create Drive D. The remaining available Extended Memory may be used to create additional RAM disks. Syntax DEVICE = VDISK.SYS [disk_size [sector_size [root_entries]]]
Options disk_size Specifies the size of the RAM disk in kilobytes. The default disk size is 64 KB. If the amount of available Extended Memory is less than the disk size specified here, the size of the disk will be adjusted to the largest size available. sector_size
Specifies the disk sector size in bytes. The default sector size is 512 bytes. Possible values are 128, 256, or 512. root_entries
Specifies the number of root directory entries. The default value is 64 directory entries. This number may be set to any value between 2 and 1024.
XFER.EXE The XFER utility provides the ability to transfer files to and from a PC through the Falcon’s serial port. For basic information about XFER, refer to page 1-11 through page 1-12. For complete information, refer to Chapter 3.
6-8
Falcon® DOS Portable Terminals