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 12 of 56

JANUS 2010 Hand-Held Computer (4MB) User's Manual, pages 111 to 120

Pages 111 to 120 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 111

CODENUG NUGLearning About the Software

3

2. Connect a power supply to the communications dock or optical link adapter. Note: For JANUS 2010 and 2020 devices only. This step is recommended, but is not required. Caution JANUS 2010 and 2020 devices 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 overwritten. If the power goes down when using PutDisk, internal safeguards permit a resume of the flash programming process. In rare cases, drive C flash must be reloaded from the Boot Loader menu and you will lose data. Conseil Les périphériques JANUS 2010 et 2020 doivent être alimentés par une source de courant alternatif lors de l'exécution de la commande PutDisk étant donné le risque de décharge de la batterie pendant que la mémoire flash est écrasée. Si le courant est coupé pendant l'exécution de PutDisk, des mesures de sécurité internes font en sorte de remettre en opération le processus de programmation flash. Il peut arriver, quoique rarement, qu’il faille recharger la mémoire flash du lecteur C à partir du menu Chargeuramorce (Boot Loader) et que des données soient perdues. 3. If you created the image file on the host computer and want to load it to the JANUS device from the host, start Interlnk now (with the host as server, and the JANUS device as client). Note: You can simply reboot the JANUS device after the connected host has Interlnk installed. You do not have to start Interlnk if you followed one of these strategies: •

You created the image file on the JANUS device.

•

You created the image file on the host computer, copied the file to a PC card, and inserted the PC card into the JANUS device.

3-27

Page 112

JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG

4. Type this command on the JANUS device: putdisk /d=[drvletter] /i=[image filename] where: drvletter is the target JANUS drive to be updated. The default is drive C.

image filename is the name of the drives C or D image file created by MakeDisk. If you do not specify a path and filename, PutDisk looks for DRIVE_C.IMG.

You may receive error messages in the following conditions: •

If the specified file does not exist, PutDisk displays an error message and terminates.

•

If you specify a path without a file name, PutDisk also displays an error message.

•

PutDisk generates an error message if you attempt to put a DRIVE_C.IMG on drive D or a DRIVE_D.IMG on drive C.

Note: PutDisk will overwrite all files on drives C or D. For example, to copy the C-ATA.IMG image file from a PC card on the JANUS device to the JANUS drive C, type this command: putdisk /i=g:\c-ata.img PutDisk tries to determine if there is adequate power before replacing the drive image. If a power problem exists, PutDisk displays an error message and terminates. You see messages on the JANUS device as PutDisk updates drives C or D, erases flash memory, and copies the DOS and new drives C or D image file to the JANUS device, and warm boots the JANUS device. If an error occurs, see Chapter 10, “Troubleshooting.”

Examples of Using MakeDisk and PutDisk Following are three examples of how you can use MakeDisk and PutDisk to change the contents of drives C or D:

3-28

•

In the first example, you run MakeDisk on the host, transfer the image file to the JANUS device on a PC card, and run PutDisk on the JANUS device to load the image file to drive C.

•

In the second example, you run MakeDisk on the host, use Interlnk to make the image file appear as if it were on the JANUS device, and run PutDisk on the JANUS device.

Page 113

CODENUG NUGLearning About the Software

•

3

In the third example, you run MakeDisk on the host, transfer the image file to the JANUS device on a PC card, and run PutDisk on the JANUS device to load the image file to drive D.

Example 1 In this example, the resulting image file will be larger than 256K, so you must create the image file on the host computer if the JANUS RAM drive is configured at 256K (factory default). This example assumes that the host computer and the JANUS device can share a PC card. 1. Connect the JANUS device to a host computer using an appropriate serial connection. 2. Create a source directory on the host computer by typing this command at the host computer’s DOS prompt: mkdir c:\drivec

3. Fill the source directory with all the files you want to include in the new image file: a. Copy the files from the current drive C to the source directory. Because the host computer and JANUS device can share a PC card, you can insert the card into the JANUS PC card drive and copy all files from drive C to drive G. Then insert the card into the host computer’s PC card drive and copy all the files to the source directory. b. Add any other files and/or subdirectories to the working directory that you want on drive C. These files may include source read-only data files and applications for your JANUS device. c. Edit AUTOEXEC.BAT, CONFIG.SYS, and other files in the source directory as necessary. 4. Insert the JANUS Boot Utilities companion disk into a drive on the host PC. 5. Copy the self-expanding executable C_MAKE.EXE to drive C on the host PC by typing: copy a:\c_make.exe c:\

6

Run C_MAKE.EXE and delete all of the extracted files except for MAKEDISK.EXE.

7. Type this command at the host computer’s DOS prompt: makedisk /s=c:\drivec /o=newdrv.img

An image file, NEWDRV.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.

3-29

Page 114

JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG

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 C. putdisk /i=g:\newdrv.img

Example 2 In this example, you create the image file on the host computer, use Interlnk to make the image file appear as if it were on the JANUS device, and use PutDisk to load the image file to drive C. 1. Connect the JANUS device to a host computer using an appropriate serial connection. 2. Create a source directory on the host computer by typing this command at the host computer’s DOS prompt: mkdir c:\drivec

3. Fill the source directory with all the files you want to include in the new image file: a. Copy the files from the current JANUS drive C to the source directory on the host PC. Use Interlnk with the host computer as the client and the JANUS device as the server. b. Add any other files to the source directory that you want on drive C. These files may include read-only data files and applications for your JANUS device. Note: Do not create the image file in the directory where the source files reside. c. Edit AUTOEXEC.BAT, CONFIG.SYS, and other files in the source directory as necessary. 4. Insert the JANUS Boot Utilities companion disk into a drive on the host PC. 5. Copy the self-expanding executable C_MAKE.EXE to drive C on the host PC by typing: copy a:\c_make.exe c:\

6

Run C_MAKE.EXE and delete all of the extracted files except for MAKEDISK.EXE.

7. Type this command at the host computer’s DOS prompt: makedisk /s=c:\drivec /o=newdrv.img

3-30

Page 115

CODENUG NUGLearning About the Software

3

MakeDisk creates an image file, NEWDRV.IMG, in the working directory of the host computer’s drive C. 8. Restart Interlnk. Make the JANUS device the client, and the host computer the server. The new image file, NEWDRV.IMG, appears on the H drive root directory. 9. At the DOS prompt on the JANUS device, type this command to load the image file to drive C. putdisk /i=h:\newdrv.img

Example 3 In this example, the resulting image file will update drive D. Since the image file will be larger than 256K, you must create the image file on the host computer if the JANUS RAM drive is configured at 256K (factory default). This example assumes that the host computer and your JANUS device can share a PC card. 1. Connect the JANUS device to a host computer using an appropriate serial connection. 2

Create a source directory on the host computer by typing this command at the host computer’s DOS prompt: mkdir c:\drived

3. Fill the source directory with all the files you want to include in the new image file: a. Copy the files from the current drive D to the source directory. Because the host computer and your JANUS device can share a PC card, you can insert the card into the JANUS PC card drive and copy all files from drive D to drive G. Then insert the card into the host computer’s PC card drive and copy all the files to the source directory. b. Add any other files and/or subdirectories to the source directory that you want on drive D. These files may include read-only data files and applications for your JANUS device. 4. Insert the JANUS Boot Utilities companion disk into a drive on the host PC. 5. Copy the self-expanding executable C_MAKE.EXE to drive C on the host PC by typing: copy a:\c_make.exe c:\

6

Run C_MAKE.EXE and delete all of the extracted files except for MAKEDISK.EXE.

3-31

Page 116

JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG

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

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:

3-32

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

Page 117

CODENUG NUGLearning About the Software

When You Do This

RAM Drive Files Are

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

3

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.

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

3-33

Page 118

JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG

When you create a physical RAM drive, DOS gives it the next available drive letter on the reader. For example, if you create two RAM drives, DOS may assign them drives E and F. In this case, the reader’s Type I PC card drive is assigned drive G (instead of F) and the 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] 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

3-34

Page 119

CODENUG NUGLearning About the Software

•

3

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.

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 to help you create reader applications: •

JANUS Programmer’s Software Kit (PSK)

•

JANUS Application Simulator

•

Interactive Reader Language (IRL)

•

PC-IRL

3-35

Page 120

JANUS 2010 Hand-Held Computer User’s Manual (4MB)CODENUGG NUGG

Using JANUS PSK and JANUS Application Simulator The JANUS 2010 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 Application 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 2010 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:

3-36

•

IRL Programming Reference Manual

•

PC-IRL Reference Manual