The text of a manual · part 10 of 56
JANUS 2010 Hand-Held Computer (4MB) User's Manual, pages 91 to 100
Pages 91 to 100 of 556
The original document is the PDF (3.0 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 Intermec J2010
Page 91
CODENUG NUGLearning About the Software
3
Defining the Startup Files JANUS devices use two startup files to control how DOS uses hardware, memory, and files: AUTOEXEC.BAT and CONFIG.SYS. AUTOEXEC.BAT loads programs and defines paths. CONFIG.SYS loads device drivers and reserves memory for processing information. The commands in the startup files execute when you warm boot or cold boot the JANUS device. You may modify the startup files for a variety of reasons: •
To change the default JANUS Startup menu.
•
To support applications you will run on your JANUS device.
•
To load drivers for your PC cards.
•
To create physical RAM drives.
•
To configure your JANUS device to operate in another language.
Because AUTOEXEC.BAT and CONFIG.SYS are stored on drives C or D, you must use Auto-Loader, binary file transfer (BFT), or MakeDisk and PutDisk to replace them. The next sections illustrate what the two startup files may contain when your 4MB JANUS device arrives from the factory.
AUTOEXEC.BAT File The AUTOEXEC.BAT file on your 4MB JANUS device should look like this one: Command Line
Definition echo off
The AUTOEXEC.BAT commands are not displayed on the screen as they are executed.
cls
Clears the screen.
if not exist autoinst.bat goto T2 call autoinst goto T3 :T2 if exist d:\autoinst.bat call d:\autoinst :T3
These commands call the AUTOINST.BAT file, enabling you to update drives C or D with Auto-Loader.
set prompt=$p$g
Sets the DOS prompt to display the current drive and directory, followed by the > symbol.
set path=c:\;d:\;e:\;
Directs DOS to look for commands and programs in the root directories of drives C, D, and E. Do not add drive G to the path, or else errors will occur when you do not have a PC card installed.
Do not remove these commands. Do not delete AUTOINST.BAT from drives C or D.
3-7
Page 92
JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG
AUTOEXEC.BAT File (continued) Command Line
Definition set temp=e:\
A temp directory is required for MORE.COM to work correctly on ROM drives.
set im_errpath=e:\
Tells the JANUS device to write the configuration error file JANUS.ERR to drive E. The JANUS device must execute this command before it calls LOADUMA.EXE.
d: d:\ipm_4m.exe REM d:\apm_4m.exe
IPM_4M and APM_4M work with card services to manage the power on the PC card drive when you suspend and resume the JANUS device.
Note: Do not load both at the same time, but you must load one. if exist d:\loaduma.exe d:\loaduma
Loads Reader Services, Configuration Manager TSR, and the decode and scanner utilities that let the JANUS device operate as a bar code reader.
d:\im_disp.exe
Loads software required for the display.
d:\ic /0 e:\janus.ini
Loads the JANUS.INI configuration file if it exists.
d:\kwc.com 0
Sets the bar code wedge options. The default configuration is 0. Configuration parameters are: 0 Virtual wedge and expanded keyboard enabled. 1 Direct Hardware wedge and expanded keyboard enabled. 2 Direct Hardware wedge enabled and expanded keyboard disabled. 3 Virtual Wedge enabled and expanded keyboard disabled. 4 Display status.
rfph 4
3-8
Loads the RF protocol handler for COM4 only if you are using a JANUS RF device.
Page 93
CODENUG NUGLearning About the Software
3
AUTOEXEC.BAT File (continued) Command Line
Definition if not exist c:\fta.exe goto DOS_PROMPT e: fta.exe checkhost; exit
Runs the FTSERVER batch file if it is on drives C or D. FTSERVER runs FTA.EXE, which provides binary file transfer (BFT) on the JANUS device. If a host is trying to initiate a BFT session, FTA continues running; if not, FTA stops running.
%IM_APPLICATION% :DOS_PROMPT
After FTA terminates, %IM_APPLICATION% runs any application identified by the DOS environment variable IM_APPLICATION.
c:
Resets the JANUS device to drive C or D.
cls
Clears the screen.
CONFIG.SYS File The CONFIG.SYS file on your 4MB JANUS device should look like this one: Command Line
Definition
[menu] menuitem=sram, Load PCCard menuitem=ata, ATA PCCard menuitem=flash, Flash PCCard menuitem=io, I/O PCCard menuitem=no, No PCCard menucolor=15,0 menudefault=sram, 20
Creates the Startup menu.
shell=command.com /e:2000 /p
Increases the size of the environment space to 2000 bytes. This line is required for Auto-Loader.
device=d:\himem.sys /testmem:off dos=high
Loads the DOS extended memory manager, HIMEM.SYS. You must load HIMEM before you load device drivers.
device=d:\power.exe /low
Loads APM power management.
device=d:\sramdisk.sys 256 512 /e
Creates the 256K RAM drive E.
install=d:\card_sr.exe
Loads software required for the PC card drives.
3-9
Page 94
JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG
CONFIG.SYS File (continued) Command Line
Definition
[sram] device=d:\cs.exe /poll:1 device=d:\csalloc.exe d:\csalloc.ini device=mtsram.ext device=mtddrv.exe
Loads software required for PC cards. CSALLOC is a DOS program that scans the system for available memory, I/O port, and interrupt request queue (IRQ) resources.
[ata] device=d:\cs.exe /poll:1 device=d:\csalloc.exe d:\csalloc.ini device=\atadrv.exe /s:2 device=mtddrv.exe device=d:\cardid.exe
Loads software required for ATA cards.
[flash] device=d:\cs.exe /poll:1 device=d:\csalloc.exe d:\csalloc.ini device=d:\mti1.exe device=d:\mti2p.exe device=mtddrv.exe device=d:\ftl.exe
Loads software required for flash cards.
[io] device=d:\cs.exe /poll:1 device=d:\csalloc.exe d:\csalloc.ini device=mtsram.exe device=mtddrv.exe device=d:\cardid.exe
Loads software required for SRAM and I/O cards.
[no] [common] device=d:\interlnk.exe /drives:7 /noprinter /com:1 /auto
Loads Interlnk as a resident device driver only if Intersvr is executing on a host computer that is connected to the JANUS device. Do not remove. Auto-Loader uses this line.
buffers=10
Sets the amount of memory that DOS reserves for data transferred to and from a disk.
files=50
Sets the number of files that can be open at one time. You need this command for IRL support.
stacks=9,256
Sets the amount of memory that DOS reserves to process hardware interrupts.
3-10
Page 95
CODENUG NUGLearning About the Software
3
MS-DOS Startup Menu The default JANUS startup menu is defined in the menu configuration block in the CONFIG.SYS file. It defines several different PC Card configurations that you can enable on your JANUS device. You can modify or disable the JANUS startup menu by removing or changing parameters in the menu configuration. Refer to any MS-DOS 6.2 manual for more information on setting up or changing the startup menu.
MS-DOS 6.2 Startup
1. SRAM PCCard 2. ATA PCCard 3. Flash PCCard 4. I/O PCCard 5. No PCCard Enter a choice:
F5=Bypass startup file
20X0A.002
Learning How to Change the Contents of Drive C Drive C contains the reader’s AUTOEXEC.BAT and CONFIG.SYS startup files, as well as software for the PC card drive. You can use the remaining space on drive C to store applications and data files. In general, drive C should contain files that you often read or execute, but do not often write to or replace. Drive C is a 512K ROM drive implemented in flash memory. It is upgradeable, but has limited write capability. You can use DOS commands to read from drive C, but you cannot use DOS commands to write to drive C. To write to drive C, you must use one of these special utilities: •
Auto-Loader
•
MakeDisk and PutDisk
•
Binary file transfer (BFT)
These utilities let you create an image file that contains an “image” or “snapshot” of all the files you want on drive C. Then you use the utilities to load the image file to drive C. Once you load the image file to drive C, the image file becomes transparent. For example, when you use the DOS DIR command for a directory listing on drive C, all you see are the individual files that were contained in the image file. You cannot directly add, edit, or delete individual files on drive C. Instead, you must replace the entire image.
3-11
Page 96
JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG
You can use these utilities to create an image file and copy it to drive C: Auto-Loader Auto-Loader creates an image file that contains the files you want placed on the reader’s drive C, and then replaces the reader’s old drive C image file with the new one. You run Auto-Loader on a host computer connected to the reader’s COM1 port. Binary File Transfer (BFT) Use BFT in a 900 MHz CrossBar or RF network to connect a host computer to one or more devices in order to transfer files or change the contents of drive C. For help, see “Downloading Applications Across the Network” in Chapter 6. MakeDisk and PutDisk MakeDisk creates an image file containing the files you want on the drive, and PutDisk places the new image on the JANUS drive. MakeDisk supports the creation of subdirectories on drives C and D. For more information, see “Using MakeDisk and PutDisk to Change Drives C or D” later in this chapter.
Image file
AUTOEXEC.BAT
CONFIG.SYS
AUTOINST.BAT
MTSRAM.EXE
Drive C
2020U.212
The next table shows the tasks you can perform with Auto-Loader, BFT, and MakeDisk and PutDisk.
3-12
Page 97
CODENUG NUGLearning About the Software
3
Summary of Methods for Changing the Contents of Drive C Task You Want to Do
Use These Utilities
For Complete Instructions
Configure the reader to use a language.
Auto-Loader
See “Configuring the Reader for a Language” in Chapter 8.
Add or edit files on drive C without deleting all existing files.
Auto-Loader
See “Adding or Editing Files on Drive C” later in this chapter.
Replace some files on drive C without deleting all existing files.
Replace all of the files on drive C.
Deleting some files from drive C without deleting all existing files.
Copy one image file to multiple readers.
or MakeDisk/PutDisk
See “Using MakeDisk and PutDisk to Change Drives C or D” later in this chapter.
Auto-Loader
See “Adding or Editing Files on Drive C” later in this chapter.
or MakeDisk/PutDisk
See “Using MakeDisk and PutDisk to Change Drives C or D” later in this chapter.
Auto-Loader
See “Replacing All Files on Drive C” later in this chapter.
or MakeDisk/PutDisk
See “Using MakeDisk and PutDisk to Change Drives C or D” later in this chapter.
Auto-Loader
See “Deleting Files From Drive C” later in this chapter.
or MakeDisk/PutDisk
See “Using MakeDisk and PutDisk to Change Drives C or D” later in this chapter.
Auto-Loader
See “Copying One Image File to More Than One Reader” later in this chapter.
or BFT or MakeDisk/PutDisk
See “Downloading Applications Across the Network” in Chapter 6. See “Using MakeDisk and PutDisk to Change Drives C or D” later in this chapter.
3-13
Page 98
JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG
Using Auto-Loader to Change Drive C As noted on the previous page, you can use Auto-Loader to perform these tasks: •
Adding or editing files on drive C
•
Replacing some files on drive C
•
Replacing all of the files on drive C
•
Deleting files from drive C
First you must install Auto-Loader onto the host computer.
Installing Auto-Loader on Your Host Computer If you want to use Auto-Loader, you must install Auto-Loader from the Boot Utilities companion disk 1 onto your host computer. Before you start installing Auto-Loader, make sure you have: •
A copy of companion disk 1, which contains the Auto-Loader software.
•
DOS 3.3 or higher running on the host computer.
•
COM1 or COM2 available on the host computer.
•
The host computer environment space, which is reserved by the SHELL command in CONFIG.SYS, should be at least four times the length of the pathname where the installation will copy the required files.
Note: If you want the reader to operate in another language, you must install AutoLoader according to the instructions in Chapter 8, “Preparing the Reader for International Use.” To install Auto-Loader on your host computer 1. Insert companion disk 1 into a disk drive on your host computer. 2. Create the directory where you want to install Auto-Loader. Make that directory your current working directory. Note: Do not use the drive C root directory or install Auto-Loader on a pseudodrive created with a third-party file compression software utility.
3-14
Page 99
CODENUG NUGLearning About the Software
3
3. At the DOS prompt on the host computer, type this command: source:install [-port] where: source is the disk drive where you inserted companion disk 1.
port is the number of the host computer’s COM port that the reader is connected to. This parameter is optional; the default is COM1.
Here are two examples: •
If companion disk 1 is in drive A, the reader is connected to the host computer’s COM1, and you want the reader to operate in English, type this command on the host computer: a:install
•
If companion disk 1 is in drive B, the reader is connected to the host computer’s COM2, and you want the reader to operate in English, type this command on the host computer: b:install -com2
4. Wait for the installation procedure to finish and follow any instructions on the host computer’s display. The installation creates the C_FILES\COMMON directory that contains the reader’s default AUTOEXEC.BAT, CONFIG.SYS, and AUTOINST.BAT startup files. You can edit these startup files before loading them onto the reader. Do not remove or alter clearly commented statements required for Auto-Loader. The installation also copies eight batch files into the directory you created for Auto-Loader. The next sections describe how to use five of the batch files: LOADADD, LOADNEW, MAKENEW, LOADIMG, and LOADXIMG. To learn how to use the other batch files, see “Auto-Loader Batch Files” in Appendix D. Because the batch files are customized for the drive and directory where they are installed, you must reinstall Auto-Loader to move the files. Also, these batch files are customized for English because you did not specify a country when you installed Auto-Loader. If you want the reader to operate in another language, you must install Auto-Loader according to the instructions in Chapter 8, “Preparing the Reader for International Use.”
3-15
Page 100
JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG
Using an External Power Supply When you use Auto-Loader, you must connect an external power supply to the communications dock or optical link adapter. Auto-Loader uses MakeDisk and PutDisk software. Because PutDisk requires an external power supply, Auto-Loader also requires an external power supply. Caution The reader should be powered by an AC power source when you use the PutDisk command in case the battery pack goes low while the flash memory is being erased. If the power goes down when using PutDisk, the reader locks up and the system flash must be reloaded from the Boot Loader menu and you will lose data. Conseil Il faut alimenter le lecteur par une source de courant AC lors de l'exécution de la commande PutDisk dans le cas où le jeu de piles s'affaiblit pendant l'effacement du flash. Si le courant est coupé lors de l'exécution de PutDisk, le lecteur se verrouille, le flash système doit être rechargé du menu d'amorçage (Boot Loader) et vous perdez des données. In the next procedures, Step 2 directs you to connect the power supply to the communications dock or the optical link adapter. You must perform this step.
Adding or Editing Files on Drive C You can add or edit some files on your reader’s drive C without overwriting all the files on drive C. To add or edit files on drive C Note: All files on drive C remain intact unless they are replaced by new files with the same name. 1. Connect the reader to the host computer through a communications dock or optical link adapter. If you use the communications dock, you must connect the dock to the host computer with a 3-wire (2, 3, and 7) cable for Interlnk to operate properly. 2. Connect the power supply to the communications dock or the optical link adapter. 3. Create a working directory on the host computer.
3-16