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 21 of 57

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

Pages 201 to 210 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 201

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

Loading and Unloading a Protocol Handler You can load protocol handlers in several ways: •

Manually load them at the DOS prompt.

•

Load them from AUTOEXEC.BAT when you boot the reader.

•

Include them in a batch file that also executes your program.

•

Load them when you start IRL Desktop or Communications Manager.

Note: A protocol handler is active when its corresponding communications protocol is active. For example, if the PC Standard protocol handler is loaded, it will not become active until you use the Communications Protocol, Activate command to activate the PC Standard protocol. If you are using an off-the-shelf communications application that directly accesses the COM port, do not load a protocol handler. Instead, activate No Protocol in the reader’s configuration. You cannot download reader configuration commands from the host computer when using off-the-shelf software.

Loading and Unloading a Protocol Handler at the DOS Prompt You can load the protocol handlers from the DOS command line. You should unload the protocol handler when you are finished to maximize memory. To load a protocol handler •

Type this command at the reader’s DOS prompt: protocol_handler port where: protocol_handler is the protocol handler you are loading: PHIMEC PHPCSTD RFPH port

6-16

Intermec protocol handler PC Standard protocol handler RF protocol handler is the number of the COM port for which you are loading the protocol handler.

Page 202

NF

BC Networking the Reader

6

For example, to load the Intermec protocol handler on COM1, type this command at the DOS prompt: phimec 1

Or scan this bar code:

*PHIMEC 1* *PHIMEC 1*

To unload a protocol handler •

Type this command at the DOS prompt: unload protocol_handler port

For example, to unload the Intermec protocol handler from COM1, type this command at the DOS prompt: unload phimec 1

Loading a Protocol Handler When You Boot the Reader You may want a protocol handler always loaded in the reader’s memory. First, make sure you have enough conventional memory to load a protocol handler and operate the reader. Then add a command to AUTOEXEC.BAT to load the protocol handler. When you boot the reader, AUTOEXEC.BAT will load the protocol handler into memory. The command you add to AUTOEXEC.BAT should match the command you type at the DOS command line. For help, see the previous section.

Loading and Unloading a Protocol Handler With a Batch File If you create your own application or use software that does not have built-in protocol handlers, you can create a batch file that automatically loads and unloads the protocol handler whenever you enter and exit the application. Note: Name the batch file carefully. COMMAND.COM executes files in this order: .COM, .EXE, .BAT. If a batch file (.BAT) and an application (.EXE) have the same filename, when you type the filename the reader runs the application instead of the batch file. Therefore, the batch file that loads the protocol handlers for your application should have a different filename from the application itself. This batch file loads PHIMEC and PHPCSTD, runs Communications Manager, and unloads the protocol handlers when you exit Communications Manager. You can edit this batch file to load only one protocol handler, freeing some conventional memory for the application.

6-17

Page 203

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

Example Batch File Command Line

Definition set CMPCST= set CMUSER=

Clears the environment variables used by this batch file.

phimec 1

Loads the Intermec protocol handler for COM1.

if not errorlevel 1 set CMUSER=1

If the Intermec protocol handler is already loaded, an error is returned and the variable is not set.

phpcstd 1

Loads the PC Standard protocol handler for COM1.

if not errorlevel 1 set CMPCSTD=1

If the PC Standard protocol handler is already loaded, an error is returned and the variable is not set.

cmanager %1 %2 %3

Executes the Communications Manager program. You can replace this with your application executable.

if not "%CMPCSTd%"=="1" goto :nopcstd unload phpcstd 1

If this batch file loaded the PC Standard protocol handler, then the PC Standard protocol handler is unloaded.

if errorlevel 1 echo unload failure on pcstd :nopcstd

Checks for failure to unload the PC Standard protocol handler.

if not "%CMUSER%"=="1" goto :nouser unload phimec 1

If this batch file loaded the Intermec protocol handler, the Intermec protocol handler is unloaded.

if errorlevel 1 echo unload failure on userdef :nouser

Checks for failure to unload the Intermec protocol handler.

6-18

Page 204

NF

BC Networking the Reader

6

Loading and Unloading a Protocol Handler With an Application You can load a protocol handler for a designated port when you start the IRL Desktop or Communications Manager. When you exit the program, the protocol handler is automatically unloaded. To load a protocol handler by starting IRL Desktop or Communications Manager •

Type this command at the DOS prompt: application [-portph] where: application is the application you are executing: irl cmgr

IRL Desktop Communications Manager port is the number of the reader’s COM port.

ph is the code for the protocol handler: i p r

Intermec protocol handler PC standard protocol handler RF protocol handler

For example, to load the Intermec protocol handler on COM1 and execute the IRL Desktop, type this command at the DOS prompt: irl -1i

Or scan this bar code:

*IRL-1I* *IRL -1I*

6-19

Page 205

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

Specifying a Value for the FIFO Control Register If you turn off your JANUS reader while running a non-Intermec communications application, the reader cannot access and save the contents of the First In First Out (FIFO) control register (FCR). The FCR contains a hex value that controls the Universal Asynchronous Receiver/Transmitter (UART) buffer. When you turn the reader back on, the reader sets the FCR to its default value, 0 hex, unless you have already specified a value that the reader can use to restore the FCR. You should specify another value if the default is not appropriate for how the communications application configures the FCR. You need to determine if you should specify a value for the FCR, calculate what the value should be, and then specify the value. The next sections describe how to perform these tasks. To determine if you should specify a value •

You must specify a value if you plan to run a non-Intermec communications application on COM1 that changes the reader’s COM1 UART FCR to use UART 16x550 mode, and you do not load an Intermec protocol handler into memory. Many communications applications change the reader’s COM1 UART FCR to use UART 16x550 mode. To learn if your application uses UART 16x550 mode, see its manual.

6-20

Page 206

NF

BC Networking the Reader

6

Method for Calculating the Two-Digit Hexadecimal Value for the UART FIFO Control Register (FCR)

Two-digit hex value

Flag byte

7 6 5 4 3

2 1 0

Descriptions of each bit 0 to disable FIFO (16x450 mode) 1 to enable FIFO (16x550 mode) 0 does not reset 1 to reset receive FIFO 0 does not reset 1 to reset transmit FIFO 0 does a single transfer DMA 1 does a multiple transfer DMA that empties all of the FIFO contents in one DMA session Reserved (Always 0) Reserved (Always 0) Receiver trigger level. Indicates the number of bytes at which the receive interrupt is generated. Number of bytes that generate 7

6 a receive interrupt

0

0

1

1

0

4

0

1

8

1

1

14

2020U.117

6-21

Page 207

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

To calculate the two-digit hex value 1. Use the illustration on the previous page as a guide for calculating the value for the FCR. In this illustration, the two-digit hex value is the value you will specify for the FCR. Calculate this value by converting the contents of the FCR byte to two hexadecimal numbers. The FCR byte contains eight bits. Each bit represents a parameter that controls how the UART buffer operates. You set or clear each parameter by setting each bit to 1 or 0. 2. Choose 1 or 0 for each bit in the FCR byte. Read the descriptions to decide whether to set or clear each bit. 3. Convert the bits to two hexadecimal numbers. The resulting two-digit hex number is the value you will specify for the FCR. For example, a two-digit hex value of 81 enables UART 16x550 mode, requires the buffer to receive four bytes of data before generating a receive interrupt, and leaves all other parameters disabled: 8 1 0 0 0 0

1 0 0 1 2020U.186

To specify the value •

Specify the value for the FCR using one of these methods: Use IC.EXE Start IC.EXE, choose COM1 from the COM menu, and type the value into the FIFO CONTROL REGISTER parameter. For help using IC.EXE, see Chapter 5, “Configuring the Reader.” Scan a command Scan the Communications Port, UART Restore command in Chapter 12, “Configuration Command Reference.” Use software interrupts Use software interrupts in your application. For help, see your JANUS PSK reference manual.

6-22

Page 208

NF

BC Networking the Reader

6

Connecting the Reader to Another Device You can physically connect the reader to another device using one of the three methods described next. Note: If you have a JR2020, you do not physically connect the reader to another device. The reader communicates through radio signals instead of a physical connection. Communications Dock Place the reader in a communications dock and connect one or two devices to the dock’s serial ports. The dock’s network port is a 25-pin DTE connector and the auxiliary port is a 25-pin DCE connector. Depending on how you set the dock’s DIP switches, the reader communicates with both ports or the ports communicate with each other. If you plan to run Interlnk with the reader connected to a host computer through 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. If the reader will communicate through only one port (network or auxiliary) on the reader communications dock, you must select that port with the Communications Dock Port command. For help, see “Communications Dock Port” in Chapter 12 or the JANUS 2020 Communications Dock Quick Reference Guide.

25 pin DTE cable connected to a peripheral device

Power cord connected to an electrical outlet TM

D

2020U.078

6-23

Page 209

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

Optical Link Adapter Connect the optical link adapter to the optical port on the end of the reader. Then connect a device to the optical link adapter’s serial port, which is a 9-pin DTE connector. For help, see the JL2010 Optical Link Adapter Quick Reference Guide. Optical Link Adapter –, Power cord connected to an electrical outlet 9 pin DTE cable connected to a peripheral device

2020U.072

Reader-to-reader Align two JANUS readers for direct communications. Line up the receive signal on the first reader with the transmit signal on the second reader. Line up the transmit signal on the first reader with the receive signal on the second reader. An arrow on the bottom of the reader helps you align the readers. The readers can be no more than 1 inch apart. Locator arrow $

Maximum spacing of 1"

4

!

% d en

1 ^

# pg te en

5 r

@ e ac sp

2

)

6 s in dn

0 >

3 l de c me er Int r te en ck lo c

0 )

#

2

1

Transmit Data d en

4

!

%

5 r te en @

^ e ac sp s in dn pg

6 l de

3

>

.

ck lo rme r te en m nu m nu

.

Inte

$

Receive Data

2020U.013

6-24

Indicates direction of transmission

Page 210

NF

BC Networking the Reader

6

Running Interlnk to Transfer Files With Interlnk, you can easily transfer files between your reader and a host computer or another reader. You can also make all the drives on one computer appear as if they are physically located on the other, so that you have unrestricted access to the contents of all the drives. You can run programs over the Interlnk connections. Note: You cannot execute IRL programs over an Interlnk connection. Also, you cannot run Interlnk in an RF network.

Differentiating Between Client and Server The Interlnk utility consists of two programs: Interlnk and Intersvr. These two programs are designed to be run on separate computers: •

The computer running Interlnk is called the client.

•

The computer running Intersvr is called the server.

The difference between client and server is a simple one: the client is the device from which you enter all commands. In this example, the host computer is the client:

Client

Server

2020U.187

6-25