Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 13 of 57

JANUS 2020 Hand-Held Computer (4MB) User's Manual, pages 121 to 130

Pages 121 to 130 of 565

The original document is the PDF (2.7 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, Intermec JG2020 and Intermec JR2020

Page 121

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

7. Create the drive image by typing this command at the host computer’s DOS prompt: makedisk /s=c:\drived /o=newdrvd.img /d=d

An image file, NEWDRVD.IMG, is created in the working directory of the host computer’s drive C. Note: Do not create the image file in the directory where the source files reside. 8. Copy the image file from the host computer to the PC card and then insert the PC card into the JANUS PC card drive (drive G). Note: It is recommended that you provide an external power supply for the JANUS device before you execute PutDisk. 9. At the DOS prompt on the JANUS device, type this command to load the new image file onto drive D. putdisk /i=g:\newdrvd.img /d=d

3-32

Page 122

NF

BC Learning About the Software

3

Creating and Using a Physical RAM Drive A physical RAM (random access memory) drive is a disk drive that exists only in your reader’s extended memory. You create, read, write, and delete files on a RAM drive the same way you can on a hard disk drive. RAM drives are faster than hard disk drives because the contents of a RAM drive are, by definition, always resident in RAM. By default, your reader’s drive E is configured in the CONFIG.SYS file as a 256K RAM drive. You can use the same DOS commands and Norton utilities on a RAM drive that you can on a hard disk drive.

Understanding When Files Are Saved or Lost Make sure you understand when the files on a RAM drive are saved or lost:

L

When You Do This

RAM Drive Files Are

You press

Saved to turn off the reader.

You warm boot the reader.

Saved

You cold boot the reader.

Lost

You load the reader’s flash memory.

Lost

You put the reader in Storage mode.

Lost

You execute CONFIG.SYS after changing the command that creates the RAM drive.

Lost or You turn off the reader (by pressing removing the battery) while the reader is performing a warm boot.

Lost

L

Copy all important files from the RAM drive to another drive or another computer before you perform any task that causes the files to be lost. Note: If you need to cold boot the reader, you may be able to save the contents of the RAM drive. For help, see “Saving the Contents of the RAM Drive” in Chapter 10.

3-33

Page 123

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

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.

3-34

Page 124

NF

BC Learning About the Software

3

The SRAMDISK.SYS command must follow this syntax: device=d:\sramdisk.sys [disksize sectorsize entries] 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 MakeDisk and PutDisk, as described in “Learning How to Change the Contents of Drive C” earlier in this chapter.

3-35

Page 125

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

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.

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.

3-36

Page 126

NF

BC Learning About the Software

3

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

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.

3-37

Page 127

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

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. 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.

3-38

Page 128

NF

BC Learning About the Software

3

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. Direct Hardware Wedge The Direct Hardware Wedge is a new feature of JANUS 4.0 software that allows bar code data to emulate keystrokes on the keypad. For more information on the Virtual Wedge and Direct Hardware Wedge, see “Understanding the Bar Code Wedge,” later in this chaper.

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

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. Choose the No PC Card option on the MS-DOS startup menu and PC card drivers will not be installed when you boot the reader.

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

3-39

Page 129

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

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-40

Page 130

NF

BC Learning About the Software

3

Understanding the Bar Code Wedge The Bar Code Wedge is a Reader Services feature that enables your JANUS device to decode bar codes, making it functionally equivalent to a wedge reader connected to a PC. Prior to JANUS 4.0 software, the only wedge option was the Virtual Wedge. With the 4.0 software release, the Reader Services wedge feature has a second option, the Direct Hardware Wedge. When you scan a bar code with the Virtual Wedge Option enabled, data is inserted directly into the keyboard buffer as if it had been typed. The Direct Hardware Wedge provides hardware level PC compatibility and processes the scanned data directly as individual keystrokes. The Direct Hardware Wedge provides bar code data to applications that directly access the hardware, it is the option to select when working with applications (for example, Attachmate, FTP, Zstem for DOS, PC-TCP for DOS, and others) that require keystroke interrupts to occur when data is received. The Virtual Wedge option, which is up to 10 times faster than going through the PC hardware, is the option you should select when you need maximum performance. If you have developed advanced applications for your JANUS device, you need to customize how the reader and application handle data from the keypad, wand, or scanner. Refer to the JANUS Programmer’s Software Kit and reference manuals for instructions. The Virtual Wedge is the default configuration. You can enable the Direct Hardware Wedge by using the KWC.COM program. For more information, see “Using the Wedge Configuration Program,” later in this chapter.

Enabling Direct Hardware Wedge Functions When you enable the Direct Hardware Wedge function, you disable the portion of the Virtual Wedge that inserts data directly into the keyboard buffer. With the Direct Hardware Wedge function enabled, data is inserted into the hardware to be processed as actual keystrokes. The processing of Reader Services commands and configuration bar codes is not affected by the wedge option you select. Intermec recommends that you enable the Direct Hardware Wedge if you experience any of the following problems using off-the-shelf PC software on your 4MB JANUS device. •

You scan a bar code and get a “read beep,” but the data isn’t received by your application.

•

You scan a bar code and characters are dropped.

•

Your application uses bar codes to manipulate screen functions and the screen doesn’t respond correctly.

3-41