The text of a manual · part 20 of 57
JANUS 2020 Hand-Held Computer User's Manual, pages 191 to 200
Pages 191 to 200 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 191
NF
BC Networking the Reader
6
JANUS Readers in a Radio Frequency (RF) Data Collection Network
9180 Network Controller
9181 Base Radio Unit
J2010 with an RF Back
Host computer
9183 Repeater
JR2020 (RF) 2020U.184
You can use a JR2020 as an end device in your RF network. For help, see your JANUS RF documentation.
6-5
Page 192
JANUS 2020 Hand-Held Computer User’s Manual NF BC
Working With JANUS COM Ports Communications ports, also called COM ports, are locations from which data can be passed into and out of the reader. COM ports offer serial communications, which means that data is transmitted one bit at a time over a single line from one computer to another. The next sections cover these topics: •
Identifying JANUS COM Ports
•
Examining the COM1 Optical Port Signals
•
Understanding How IRQs Affect COM Ports
Identifying JANUS COM Ports This illustration identifies the COM ports on the reader, and the next table explains how each is designated as a COM port. Logical COM4
I /O
F5
F7 F6
F2
F1
~
+ –
A
]
> <
I p
C
T Z
S me ho
&
+ f Esc
$
/ d pg m ins
1 lock nu dn l de ter en
3
#
2 te en @
!
6
^
* % 5r
4 en
9
(
8
*
7 –
COM4 Type II PC card drive containing a modem card p gu trl
Y
X s
Cap Alt
U \
M
/
W V
N
G
R
Q
P
O
H
?
K
J
[
––
L
E
D
C
B, F
}
{
(
0
F1 F4
F9 F3
F8
>
.
0 e ac sp
COM1 Optical port
2020U.044
6-6
Page 193
NF
BC Networking the Reader
Port
How Is It Designated As a COM Port?
COM1
By default.
COM4
Use the modem card’s configuration tool.
Logical COM4
By default in JR2020.
6
Your reader can have both an RF port designated “logical COM4” and a modem card in the Type II PC card drive designated “COM4.” Accessing the RF network through logical COM4 will not conflict with accessing the serial communications network through COM4. Note: Intermec recommends that you do not designate any COM port as COM3. For help, see “Understanding How IRQs Affect COM Ports” later in this chapter.
Examining the COM1 Optical Port Signals The reader’s COM1 is an optical serial port. You can communicate through COM1 using a communications dock, optical link adapter, or another reader. This illustration shows the optical port’s signals:
Request to Send Clear to Send Port Select Receive Data Transmit Data c me er Int
COM 1 Optical port
2020U.003
6-7
Page 194
JANUS 2020 Hand-Held Computer User’s Manual NF BC
Understanding How IRQs Affect COM Ports According to the industry standard architecture (ISA) for PCs, the COM ports on a PC must share hardware interrupt requests (IRQs). Because your JANUS reader is PC compatible, the reader’s COM ports also share IRQs: IRQ3 is assigned to both COM2 and COM4. IRQ4 is assigned to both COM1 and COM3. The ISA practice of sharing IRQs causes limitations on the JANUS readers:
6-8
•
The Intermec protocol handlers, PHIMEC and PHPCSTD, cannot share IRQs. You can load PHIMEC or PHPCSTD only on COM1.
•
The Intermec RF protocol handler (RFPH) uses “logical COM ports.” RFPH designates the RF port as “logical COM4” but does not use IRQ3. Instead, IRL uses the logical port numbers to direct transmits and receives. For example, X4P transmits using “logical COM4.”
•
Intermec recommends that you do not designate any JANUS port as COM3. Because COM1 and COM3 share an IRQ, you cannot use COM1 if you use COM3.
Page 195
NF
BC Networking the Reader
6
Planning the Network Connection In most networking and data communications situations, the JANUS reader uses a communications application, communications protocol, and protocol handler to communicate with another computer device. What is a communications application? A communications application is a software program that lets the reader communicate with another computer device. Many specialized communications applications are available because there are many specialized data communications tasks to be performed. For example, a communications application may establish a connection with another computer, transfer files, and perform error checking - or it may make remote directories and files available to the local user. Communications applications usually require communications protocols and protocol handlers to handle the actual transmission of data. However, you do not need a communications protocol or protocol handler if the application will access the COM port directly. What is a communications protocol? Communications protocols determine exactly how data is transmitted between the reader and the connected device. Each protocol has parameters you can set, such as baud rate and parity. Both the reader and the connected device must use the same protocol and parameter settings to communicate properly. What is a protocol handler? Protocol handlers are programs you run only on the JANUS reader. The protocol handler transmits and receives data in the manner specified by the communications protocol. Each protocol handler is used with a specific communications protocol. The next sections explain how to choose a communications application, communications protocol, and protocol handler for each COM port on the reader.
6-9
Page 196
JANUS 2020 Hand-Held Computer User’s Manual NF BC
Choosing a Communications Application You can use one of the three communications applications provided with your reader, you can create a JANUS PSK communications application, or you can purchase a third-party communications application: Communications Manager You can use Communications Manager to transmit and receive data files, and to request COM port and protocol status. For help, see “Running Communications Manager” later in this chapter. Interlnk You can use this DOS utility to access the drives on the host computer as if they are on the reader, and vice versa. For help, see “Running Interlnk to Transfer Files” later in this chapter. IRL Desktop You can use the IRL Desktop to transfer IRL programs and IRL data files between the reader and a host computer. For help, see Chapter 7, “Working With IRL.” JANUS PSK communications application You can create your own communications application using the software libraries provided with the JANUS Programmer’s Software Kit. For help, see your JANUS PSK reference manual. File transfer application for BFT You can use the file transfer application to transfer binary files. For help, see “Downloading Applications Across the Network” later in this chapter. Third-party communications application You can use a third-party communications application that conforms to the requirements of the JANUS reader.
Choosing a Communications Protocol The reader can communicate in any of seven configurable protocols. The protocols are introduced briefly here. For details about their characteristics and parameters, see “Communications Protocol, Configure” in Chapter 12. Multi-Drop Protocol Multi-Drop follows the same protocol sequences as Polling Mode D with the extension of device addressing, which allows up to 32 devices on one 4-wire RS-485 twisted pair line. Multi-Drop protocol is typically used in CrossBar networks. Due to timeout parameters, the baud rate must be 2400 or higher. No Protocol No Protocol is for communications applications, such as Interlnk, that directly access the COM port instead of using a protocol handler. When you do not use a protocol, you can switch between direct COM port access and using a protocol handler.
6-10
Page 197
NF
BC Networking the Reader
6
PC Standard Protocol PC Standard handles data transfer on a character-bycharacter basis or by either filling a receive buffer or transmitting a buffer of data. This protocol is designed to be compatible with the standard PC BIOS functions. The one exception is that the PC Standard protocol can buffer data that is received to avoid losing characters if a program has not checked for data recently. Point-to-Point Protocol Point-to-Point is an unsolicited protocol in which the reader transmits data whenever it has something to transmit. The data is followed by a CR LF as the EOM characters. The reader is always in a receiving state and does not wait for select commands. This protocol does not perform any error checking or acknowledgment handshaking. Point-to-Point protocol is typically used to connect the reader to a CRT terminal or host computer. Since Point-to-Point is an unsolicited protocol, you can initiate the transmit command from the reader or the host. Polling Mode D Protocol Polling Mode D requires the host computer to ask the reader for data it might have (polling) and to request to send data to the reader (selecting). PC-IRL uses this protocol. RF Protocol RF Protocol is used in radio frequency (RF) networks only. For details, see your JANUS RF documentation. User-Defined Protocol User-Defined is a powerful protocol because you can configure the protocol to your own requirements. For example, you can configure User-Defined to act like a Point-to-Point protocol, except that it requires an LRC and an acknowledgment from the receiver. You can also define the communications characters such as SOM, POL, or SEL, or disable these characters by setting them to null. You can also use User-Defined protocol to define User-Defined Multi-Drop protocol. In User-Defined Multi-Drop, you must set the POL and SEL protocol characters in a predetermined combination. For help, see “POL and SEL Combinations for Multi-Drop Protocol” in Appendix C.
6-11
Page 198
JANUS 2020 Hand-Held Computer User’s Manual NF BC
Choosing a Protocol Handler There are three protocol handlers: PHIMEC The Intermec protocol handler. PHIMEC lets you communicate with other Intermec devices such as concentrators. PHPCSTD The PC Standard protocol handler. PHPCSTD provides low-level communications abilities and protocol services at the DOS level for noncommunications software, including byte-by-byte transfer and status information. RFPH The RF protocol handler. RFPH lets you communicate with devices in an RF network. You will use each protocol handler with a specific communications protocol: Use This Protocol Handler
With This Communications Protocol
PHIMEC
User-Defined Protocol Point-to-Point Protocol Polling Mode D Protocol Multi-Drop Protocol
PHPCSTD
PC Standard Protocol
RFPH
RF Protocol
Note: You do not load a protocol handler if you choose No Protocol as your communications protocol. For example, if you decide to use the Interlnk communications application, you do not need a communications protocol or protocol handler, so you choose No Protocol and do not load a protocol handler. PHIMEC and PHPCSTD are not loaded when you boot your reader because they use a lot of conventional memory. RFPH is loaded when you boot a JR2020. When you load a protocol handler that corresponds to the active protocol, the active protocol tells the protocol handler how to communicate. For help, see “Loading and Unloading a Protocol Handler” later in this chapter.
6-12
Page 199
NF
BC Networking the Reader
6
Configuring the Reader for Communications Prepare the reader to communicate with another device by performing these steps for every reader COM port that you want to communicate through: 1. Choose a COM port to configure. Decide which communications application, communications protocol, and protocol handler to use for that COM port. For help, see “Working With JANUS COM Ports” and “Planning the Network Connection” earlier in this chapter. 2. Select the COM port. 3. Configure the communications protocol(s) for the COM port. 4. Activate one communications protocol for the COM port. 5. Load the protocol handler for the COM port. 6. If you do not load a protocol handler, you may need to specify a value to restore the UART FIFO control register for the COM port. 7. Connect the reader to the device it will communicate with. 8. Repeat Steps 1 through 7 for every COM port you want to configure. Steps 2 through 7 are described in detail in the next sections.
Selecting the COM Port Begin configuring the reader by selecting a COM port. All changes you make in the reader’s configuration that relate to communications are applied to the selected COM port until you select another COM port. To select the reader’s COM port 1. Decide which reader COM port to use. For help, see “Identifying JANUS COM Ports” earlier in this chapter. 2. Select the reader’s COM port with the Communications Port, Select COM Port command. The reader will apply all subsequent changes in its communications configuration to the selected port. For help, see “Communications Port, Select COM Port” in Chapter 12.
6-13
Page 200
JANUS 2020 Hand-Held Computer User’s Manual NF BC
Configuring the Communications Protocols Next, identify and configure one or more communications protocols to use on the selected COM port. To configure a communications protocol or protocols for a COM port 1. Select the communications protocol with the Communications Protocol, Configure command. The reader applies all subsequent changes in its communications configuration to the selected protocol. For help, see “Communications Protocol, Configure” in Chapter 12. Note: For a CrossBar network, configure the reader for Multi-Drop protocol. 2. Set the parameters (such as baud rate) for the communications protocol. Make sure the values you set for the reader match the values set for the device it will communicate with. There are three ways to set communications parameters: •
You can use IC.EXE.
•
You can scan the configuration commands listed in Chapter 12.
•
You can use DOS commands. For example, you can type the MODE command at the DOS prompt, or an application using the COM port can execute standard DOS commands.
The method you choose depends on the COM port, as follows:
Methods for Setting Communications Parameters COM Port
Use IC.EXE?
Scan Commands?
Type DOS Commands?
COM1
Yes
Yes
Yes
RF (logical COM4)
Yes
Yes
No
COM4
No
Yes
Yes
3. Repeat Steps 1 and 2 for every communications protocol you want to configure for the selected COM port. Here are the parameters you can set for each communications protocol:
Multi-Drop Protocol Parameters • • •
6-14
Baud rate, parity, and data bits Transmit abort timeout Address, multi-drop