The text of a manual · part 13 of 57
JANUS 2020 Hand-Held Computer User's Manual, pages 121 to 130
Pages 121 to 130 of 570
The original document is the PDF (2.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 Intermec J2020 and Intermec JR2020
Page 121
NF
BC Learning About the Software
3
Deciding How Much Memory to Use for RAM Drives The size of the RAM drive you create is limited only by the amount of extended memory in the reader. You can create multiple RAM drives as long as the sum of their sizes does not exceed the amount of memory available. Decide how much memory you will use for the RAM drive or drives: Up to 256K If you use up to 256K, all applications have enough memory to operate normally. Intermec recommends that you adhere to a 256K limit. From 256K to 320K If you use more than 256K but less than 320K, the IRL Desktop and IC.EXE run slowly because the RAM drive is using memory these applications use for caching. More than 320K If you use more than 320K, Reader Services cannot run. For help deciding if you need Reader Services, see “Using Reader Services in Applications” later in this chapter.
Creating a RAM Drive You create RAM drives with the SRAMDISK.SYS device driver. Because SRAMDISK.SYS works only in extended memory, the reader must be running an XMS extended memory manager, such as HIMEM.SYS. Your CONFIG.SYS must include a command that installs the memory manager before the command that creates the RAM drive. For example, the default CONFIG.SYS contains these commands in this order: device=d:\himem.sys device=d:\sramdisk.sys 256 512
When you create a physical RAM drive, DOS gives it the next available drive letter on the reader. For example, if you create three RAM drives, DOS may assign them drives E, F, and G. In this case, the reader’s Type II PC card drive is assigned drive H (instead of G). To create or change a RAM drive 1. To create or change a RAM drive, you must edit the reader’s CONFIG.SYS file, which is on drive C. For help, see “Learning How to Change the Contents of Drive C” earlier in this chapter. 2. Verify that HIMEM.SYS or another XMS extended memory manager is loaded into memory by a command in the reader’s CONFIG.SYS file. 3. Add a SRAMDISK.SYS command in the CONFIG.SYS file for each RAM drive you want to add. The SRAMDISK.SYS command(s) must appear after the command that loads the extended memory manager. The SRAMDISK.SYS command must follow this syntax: device=d:\sramdisk.sys [disksize sectorsize entries]
3-31
Page 122
JANUS 2020 Hand-Held Computer User’s Manual NF BC where: disksize is the size of the RAM drive in kilobytes; specifies the amount of extended memory allocated for the drive. Type a number from 16 to 256; the default is 64. You can create multiple RAM drives if the sum of their disksizes is 256K or less. Note: You may be able to use more than 256K of extended memory for the RAM drive. For help, see the previous section, “Deciding How Much Memory to Use for RAM Drives.” sectorsize is the size of the disk sector in bytes. Type 128, 256, or 512; the default is 512. You can specify sectorsize only if you specify disksize.
entries is the maximum number of files and directories you can create in the RAM drive. Type a number from 2 to 1024; the default is 64. You can specify entries only if you specify sectorsize and disksize.
Here are sample SRAMDISK.SYS commands: •
To create a 64K RAM drive: device=d:\sramdisk.sys
•
To create two 128K RAM drives: device=d:\sramdisk.sys 128 device=d:\sramdisk.sys 128
•
To create a 256K RAM drive with 128-byte sectors and up to 16 entries in its root directory: device=d:\sramdisk.sys 256 128 16
4. Load the reader’s CONFIG.SYS file on drive C using Auto-Loader, BFT, or MkImage and PutImage, as described in “Learning How to Change the Contents of Drive C” earlier in this chapter.
caf.
5. Press to warm boot the reader. The changes to the RAM drive are put into effect when CONFIG.SYS executes. Caution Do not press any keys while the reader is performing a warm boot or you may lose data. Conseil N'appuyez pas sur des touches pendant que le lecteur se réamorce, sinon vous pouvez perdre des données.
3-32
Page 123
NF
BC Learning About the Software
3
Programming for the Reader The applications you run on your reader control how it operates, interacts with users, and helps you solve your business problems. Intermec supports these programming languages on the JANUS reader: •
Ada
•
Borland C/C++
•
Clipper
•
IRL
•
Microsoft C/C++
•
Microsoft QuickBasic
•
Microsoft’s Visual Basic for DOS
Intermec also offers these products that help you create applications for your reader: •
JANUS Programmer’s Software Kit (PSK)
•
JANUS Application Simulator
•
Interactive Reader Language (IRL)
•
PC-IRL
Using JANUS PSK and JANUS Application Simulator The JANUS 2020 fully supports the JANUS Programmer’s Software Kit (PSK). Although many applications can be written with standard language functions, you can create applications using C or Basic that incorporate PSK library functions and Intermec-specific system software interrupts. These functions and interrupts give the programmer low-level control over the reader’s hardware, such as the backlight, viewport, communications using Intermec protocols, and power management statistics. The JANUS Application Simulator lets you run JANUS applications that use PSK functions on your PC so you can use DOS development tools and debuggers common in the software industry to debug the applications’ logic and syntax. (Without the Simulator, you cannot run these applications on a PC because the PSK functions and interrupts cause a PC to lock up.) To learn more, see these manuals: •
JANUS PSK for C++ Reference Manual
•
JANUS PSK for Basic Reference Manual
•
JANUS PSK for Ada Reference Manual
•
JANUS Application Simulator User’s Manual
3-33
Page 124
JANUS 2020 Hand-Held Computer User’s Manual NF BC
Using IRL and PC-IRL The JANUS 2020 fully supports IRL, as described in Chapter 7, “Working With IRL.” You can write, compile, and run IRL programs on your reader. You can port existing IRL applications to the JANUS platform and take advantage of special JANUS commands and features. Intermec recommends you use PC-IRL to create and download IRL programs. PC-IRL provides IRL programmers with an easy-to-use programming and debugging environment on a PC. To learn more, see these manuals: •
IRL Programming Reference Manual
•
PC-IRL Reference Manual
Making PSK Applications That Work With BFT You can create PSK applications that can accept and respond to a host computer’s request to initiate a binary file transfer (BFT) session. You need to program your PSK application to accept the Prepare for Reboot command from any host computer. Your application responds by calling a Prepare for Reboot procedure (which may consist of housekeeping tasks such as closing files), and then notifies the PSK library and host computer that the reader is ready to be rebooted. At that point, the host can reboot the reader and open a BFT session. To learn how to create BFT-ready PSK applications, see your JANUS PSK reference manual. To learn more about BFT, see “Downloading Applications Across the Network” in Chapter 6.
Preparing Applications to Recover From Lockups If an application becomes locked in an infinite loop, you may not be able to terminate the application. You could warm or cold boot the reader, as described in Chapter 9, “Booting and Resetting the Reader,” but the contents of both conventional memory and the RAM drive would be lost. You can make it easier for a user to recover from a locked-up application. If you create applications in a programming language supported by the JANUS PSK and you follow the instructions in the JANUS PSK reference manual, those applications can check a flag called the application break bit whenever the program calls the appropriate function. When an application gets into a loop or is waiting for input, the user can turn off the reader, enable the application break bit, and turn the reader back on. As the reader resumes, your application finds the application break bit enabled and takes appropriate action.
3-34
Page 125
NF
BC Learning About the Software
3
For the steps the user should perform when an application locks up, see “Breaking Out of an Application” in Chapter 9. Note: IRL programs automatically check the application break bit.
Using Reader Services in Applications Reader Services are programs that decode bar codes, process data input and output (I/O), configure the reader, and handle all power management for the reader. AUTOEXEC.BAT loads Reader Services when you boot the reader. You do not interact directly with Reader Services because they operate as part of the reader’s system software. You can create applications that use Reader Services. For help, see your JANUS PSK reference manual. Reader Services include these programs: Communications Utilities Communications Utilities are transmit and receive functions that you can call with PSK functions or software interrupts. Communications Utilities let the reader transmit and receive buffers or bytes of data regardless of the communications protocol that you use. Configuration Manager Configuration Manager maintains the reader’s current configuration file (such as JANUS.INI), ensures that the reader operates according to that configuration, and lets you change the reader’s configuration file. Configuration Manager is a terminate and stay resident program (TSR) that loads into the reader’s memory during a warm or cold boot. For help, see “Unloading and Loading Configuration Manager TSR” later in this chapter. Input Manager Using software interrupts and library functions, your reader applications can use Input Manager as an interface for all data I/O from the reader’s COM ports, wand, scanner, and keypad. Input Manager also handles all power management during data I/O. For help with software interrupts and library functions, see your JANUS PSK reference manual. You can use Input Manager to customize how the reader handles data from the keypad, wand, or scanner. The reader can display all input, beep when labels are scanned, and parse reader commands. For example, when you scan a bar code label, Input Manager can identify the symbology and if the label includes reader commands. Virtual Wedge The Virtual Wedge decodes and manages bar code input, making the reader functionally equivalent to a wedge reader connected to a PC. This program facilitates rapid porting of PC applications to the reader. When you scan a bar code label, the Virtual Wedge inserts the data into the keyboard buffer as if it had been typed. The Virtual Wedge sends configuration commands to Configuration Manager. The Virtual Wedge also recognizes and implements reader commands.
3-35
Page 126
JANUS 2020 Hand-Held Computer User’s Manual NF BC
Making More Memory Available on the Reader Your JANUS reader may not have enough conventional memory available for the applications you want to run. If so, you may be able to free some conventional memory by performing these tasks: •
Not installing the PC card drivers to free about 60K of memory
•
Unloading the Reader Wedge TSR to free about 80K of memory
•
Unloading the Configuration Manager TSR to free about 50K of memory
Not Installing the PC Card Drivers You do not need to install PC card drivers if you are not using PC cards in your reader. You may be able to save up to 60K in conventional memory by not installing the drivers. Note: By default, the SRAM PC card drivers are installed when you boot the reader. All other drivers are remarked out in the CONFIG.SYS file, which means they are disabled because they are preceded by the REM characters. To make sure the PC card drivers are not installed when you boot the reader 1. Edit your AUTOEXEC.BAT file and locate these lines. One line is already remarked out. Remark out the other line so that both are remarked out. d:\cs_ipm.exe d:\cs_apm.exe
2. Edit your CONFIG.SYS file and remark out all these lines by adding the REM command at the beginning of each line: device=d:\cs.exe /poll 1 device=d:\csalloc.exe d:\csalloc.ini install=d:\card_sr.exe device=c:\atadrv.exe /s:2 device=c:\mtsram.exe device=d:\cardid.exe d:\cardid.ini device=c:\mti1.exe device=c:\mti2p.exe device=c:\mtddrv.exe device=c:\ftl.exe (or c:\ms-flash.sys)
3. Copy the new CONFIG.SYS and AUTOEXEC.BAT files to drive C. For help, see “Learning How to Change the Contents of Drive C” earlier in this chapter. 4. Press
3-36 caf.
to warm boot the reader.
Page 127
NF
BC Learning About the Software
3
Unloading and Loading Reader Wedge TSR The Reader Wedge TSR (RWTSR.EXE) must be loaded in memory before you can execute Reader Wedge PSK functions such as IM_RECEIVE_INPUT. However, you do not need RWTSR.EXE loaded when you are not running a PSK application. You can unload RWTSR.EXE and save about 80K. Note: If you run a C program that contains PSK Version 2.1 Reader Wedge functions, the program automatically loads and unloads RWTSR.EXE for you. To load the Reader Wedge TSR •
Type this command at the DOS prompt: rwtsr
Or scan this bar code:
*RWTSR* *RWTSR*
To unload the Reader Wedge TSR •
Type this command at the DOS prompt: rwtsr -d
Or scan this bar code:
*RWTSR -D* *RWTSR -D*
3-37
Page 128
JANUS 2020 Hand-Held Computer User’s Manual NF BC
Unloading and Loading Configuration Manager TSR Configuration Manager software performs two functions: •
Maintaining the reader’s current configuration file and making sure that the reader operates according to that configuration.
•
Letting you change the configuration file through a variety of methods.
These two functions are handled by separate processes running on the reader. Both processes are started when you boot the reader. You cannot unload the process that maintains the configuration, but you can unload the process that lets you change the configuration. The process that lets you change the configuration is the Configuration Manager TSR (CFGTSR.EXE). After you configure a reader, you can unload the Configuration Manager TSR and free 50K of conventional memory. Note: While the Configuration Manager TSR is unloaded, do not run applications that change the reader’s configuration. To load Configuration Manager TSR •
Type this command at the DOS prompt: cfgmgr
Or scan this bar code:
*CFGMGR* *CFGMGR*
The reader displays the message, “Configuration Manager TSR X.XX.” To unload Configuration Manager TSR •
Type this command at the DOS prompt: cfgmgr -d
Or scan this bar code:
*CFGMGR -D* *CFGMGR -D*
The reader displays the message, “Configuration Manager TSR Unloaded.”
3-38
Page 129
NF
BC Learning About the Software
3
When the Configuration Manager TSR is not loaded: •
You have an additional 50K of memory available on the reader for other applications or device drivers.
•
You cannot scan bar code labels that contain configuration commands. If you scan a configuration command, the reader sounds an error beep and displays the message, “Bad command or filename.”
•
You cannot send configuration commands over an RF link or serial COM port with an RF reader.
•
You can run IC.EXE or the IRL Desktop (IRLDESK.EXE). When you start IC.EXE or the IRL Desktop, the reader loads the Configuration Manager TSR for you. When you exit IC.EXE or the IRL Desktop, the reader unloads the Configuration Manager TSR. If there is not enough memory available for the Configuration Manager TSR when you try to start IC.EXE or the IRL Desktop, the reader displays an error message. To solve this problem, make sure at least 50K of memory is free and try again.
Upgrading to New Software Intermec periodically releases new versions of the JANUS software that may include new features, improved performance, and enhancements to existing features. To help you upgrade your reader to the new software, Intermec offers an upgrade kit that contains the software, license, and instructions you need. See your Intermec service representative for information about the upgrade kits that are currently available. Usually, the upgrade kit requires you to load new flash memory, following the procedure described in the JANUS Software Upgrade Instruction Sheet.
3-39