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

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

Pages 191 to 200 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 191

Networking the Reader nugget code39 helconital

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.

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

6-9

Page 192

JANUS 2010 Hand-Held Computer User’s Manual (4MB) nugget code39 helconital 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. 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. 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.

6-10

Page 193

Networking the Reader nugget code39 helconital

6

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.

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 non-communications software, including byte-by-byte transfer and status information. RFPH The RF protocol handler. RFPH lets you communicate with devices in an RF network.

6-11

Page 194

JANUS 2010 Hand-Held Computer User’s Manual (4MB) nugget code39 helconital 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 JANUS 2010 with an RF back. 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.

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.

6-12

Page 195

Networking the Reader nugget code39 helconital

6

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.

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.

6-13

Page 196

JANUS 2010 Hand-Held Computer User’s Manual (4MB) nugget code39 helconital 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

COM2

No

No

Yes

RF (logical COM4)

Yes

Yes

No

COM4

No

Yes

Yes

Note: You cannot set communications parameters for COM2 by scanning configuration commands because the scanner port is functioning as COM2, not as a scanner. 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 • • •

Baud rate, parity, and data bits Transmit abort timeout Address, multi-drop

PC Standard Protocol Parameters •

Baud rate, parity, data bits, and stop bits

Point-to-Point Protocol Parameters • • • •

Baud rate, parity, data bits, and stop bits Flow control Intercharacter delay, turnaround delay, and timeout delay Transmit abort timeout

Polling Mode D Protocol Parameters • • •

6-14

Baud rate Flow control Transmit abort timeout

Page 197

Networking the Reader nugget code39 helconital

6

User-Defined Protocol Parameters • • • • • • • • •

Baud rate, parity, data bits, and stop bits Flow control and LRC Intercharacter delay, turnaround delay, and timeout delay Transmit abort timeout SOM and EOM AFF, NEG, POL, REQ, RES, and SEL EOF, EOR, and records per block IRL parameters: BAK, End, EOP, PAK, PSS, Run, and SOP User-Defined, Multi-Drop Enable

Activating One Communications Protocol A COM port can only use one communications protocol at a time. You designate the communications protocol that a port will use when you activate the communications protocol. You must activate one communications protocol for the COM port. To activate one communications protocol for a COM port •

Execute the Communications Protocol, Activate command to activate the communications protocol. For help, see “Communications Protocol, Activate” in Chapter 12.

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 a third-party 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 third-party software.

6-15

Page 198

JANUS 2010 Hand-Held Computer User’s Manual (4MB) nugget code39 helconital 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

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.

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.

6-16

Page 199

Networking the Reader nugget code39 helconital

6

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

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 Communications Manager. You can replace this with your application executable.

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

Unloads the PC Standard protocol handler if it was loaded by this batch file.

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

Unloads the Intermec protocol handler if it was loaded by this batch file.

if errorlevel 1 echo unload failure on userdef :nouser

Checks for failure to unload the Intermec protocol handler.

6-17

Page 200

JANUS 2010 Hand-Held Computer User’s Manual (4MB) nugget code39 helconital 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*

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.

6-18