The text of a manual · part 14 of 42
JANUS 2050 Vehicle-Mount Computer (4MB) User's Manual, pages 131 to 140
Pages 131 to 140 of 419
The original document is the PDF (2.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 J2050
Page 131
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB) 39 nugget A
Tips for Enabling PC Card Drivers Consider these guidelines: •
If you are using two different types of PC cards in your JANUS 2010 reader, make sure you enable all the drivers in CONFIG.SYS for both types. Otherwise, one or both cards may not operate correctly.
•
If you use several types of PC cards, you can expect to edit the CONFIG.SYS file often to activate and deactivate these device drivers. You may consider creating several versions of the CONFIG.SYS file, each of which supports a different type of card.
•
If you are having trouble or if you want to customize your system, you can use the CONFIG.EXE configuration utility, which is stored on companion disk 3. For instructions, read the SystemSoft CardSoft 3.1 Software User’s Guide. The guide is in Microsoft Word 2.0 format and stored as the executable zipped file CSUG_DOC.EXE on companion disk 3. Note: You must run CONFIG.EXE on a PC, not on a JANUS reader.
5-20
Page 132
6 Communicating With the JANUS 2050
Page 133
Page 134
nubbet code30 iconCommunicating With the JANUS 2050
6
This chapter discusses communications protocols, explains how to set up the JANUS 2050 to communicate with another device, and describes the different methods you can use to communicate with the JANUS 2050. For information on radio frequency communication (RF), refer to the Radio Frequency Quick Reference Guide that ships with this manual for information about 900MHz RF communication, or to the documentation in your 2.4 GHz Installation Utility kit for information about 2.4GHz RF communication.
Planning the Network Connection In most networking and data communications situations, the JANUS 2050 uses a communications application, communications protocol, and protocol handler to talk to the network. What is a communications application? A communications application is a software program that lets the JANUS 2050 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 JANUS 2050 and the connected device. Each protocol has parameters you can set, such as baud rate and parity. Both the JANUS 2050 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 2050. 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 describe the communications protocols and protocol handlers available for your JANUS 2050.
6-3
Page 135
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon
Choosing a Communications Application You can use one of the three communications applications shipped with your JANUS 2050, 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 JANUS 2050 and a host computer. For help, see Chapter 7, “Working With IRL.” Interlnk/Intersvr You can use the DOS utilities Interlnk and Intersvr to access the drives in the host computer as if they existed in the JANUS 2050, and vice versa. For help, see “Communicating Using the Interlnk/Intersvr Utilities” later in this chapter. Communications Manager You can use the Communications Manager utility to transmit and receive data files, and to request COM port and protocol status. For help, see “Communicating Using 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 the JANUS PSK reference manual set. Third-Party communications application You can use a third-party communications application that conforms to the requirements of the JANUS 2050.
Choosing a Communications Protocol The device 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 10. 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 for a Point-to-Point like protocol, but with an LRC and an acknowledgment from the receiver being required. You can also define communications characters such as SOM, POL, or SEL, or disable these characters by setting them to zero. User-Defined protocol is also used to define User-Defined Multi-Drop protocol. In User-Defined Multi-Drop, the POL and SEL protocol characters must be set in a predetermined combination. See Appendix A for the correct POL and SEL combinations.
6-4
Page 136
nubbet code30 iconCommunicating With the JANUS 2050
6
Point-to-Point protocol Point-to-Point is an unsolicited protocol in which the JANUS 2050 transmits data whenever it has something to transmit. The data is followed by a CR LF as the EOM character. It 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 JANUS 2050 to a CRT terminal or host computer. Since it is an unsolicited protocol, the transmit command can be initiated from the JANUS 2050 or the host. Polling Mode D protocol Polling Mode D requires the host to ask the JANUS 2050 for data it might have (polling) and to request to send data to the JANUS 2050 (selecting). PC-IRL uses this protocol. 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. Due to timeout parameters, the baud rate must be 2400 or higher. Multi-Drop protocol is typically used in CrossBar networks. 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 is capable of buffering data that is received, which avoids losing characters if a program has not checked for data recently. RF protocol RF protocol is for use in radio frequency (RF) networks only. For details, see the JANUS 900 MHz Radio Frequency Quick Reference Guide. No protocol No protocol is for communications programs, such as Interlnk/Intersvr, that directly access the COM port instead of using a protocol handler, which allows you to switch between direct COM port access and using a protocol handler.
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. This includes byte-by-byte transfer and status information.
6-5
Page 137
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon
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 Communications 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/Intersvr communications application, you do not need a communications protocol or protocol handler, so you choose No protocol and do not load a protocol handler. Instructions for loading and unloading protocol handlers are presented later in this chapter. When you load a protocol handler that corresponds to the active protocol, the active protocol tells the protocol handler how to communicate.
6-6
Page 138
nubbet code30 iconCommunicating With the JANUS 2050
6
Setting Up the JANUS 2050 for Communications 1. Select and configure the communications port and protocol. 2. Load the corresponding protocol handler, if necessary. 3. If you are not loading a protocol handler, set the configuration parameters for communications port UART (Universal Asynchronous Receiver/Transmitter). 4. Connect the JANUS 2050 to the device it will communicate with. Each step is explained in the following pages.
Configuring the JANUS 2050 for Communications When configuring the JANUS 2050 to talk to another device, it is important that the JANUS 2050 and connecting device are set to the same communications protocol and parameters. The communications protocols have one or more parameters that must be configured for that protocol. To configure the JANUS 2050 for communications 1. Select the communications port for which you are configuring the protocol. Your selection tells the JANUS 2050 to apply all further communication configurations to the selected port. (See “Communications Port, Select” in Chapter 10.) 2. Select the protocol you want to configure. Your selection tells the JANUS 2050 to apply all further communications parameter configurations to the selected protocol. (See “Communications Protocol, Configure” in Chapter 10.) 3. Set the parameters for that protocol. (See “Communications Protocol, Configure” in Chapter 10 for a list of parameters for each protocol.) 4. Activate the selected protocol. The port cannot use the communications protocol until it is active. (See “Communications Protocol, Activate” in Chapter 10.) You can configure the JANUS 2050 port for more than one communications protocol, but the port can only use one protocol at a time. You designate what protocol a port should have by “activating” it in the JANUS 2050’s configuration. When you are using a communications program on the JANUS 2050, the RF port is designated as COM4. Note: If you are using a CrossBar network, configure the JANUS 2050 for Multi-Drop protocol.
6-7
Page 139
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon
Loading and Unloading Protocol Handlers There are several ways to load protocol handlers: •
Manually load them from the DOS command line.
•
Include them in a batch file that also executes your program.
•
Load the protocol handlers whenever you execute the Communications Manager utility or IRL Desktop.
If you are using an off-the-shelf communications program that directly accesses the COM port, you can maximize memory by not loading a protocol handler. You activate No protocol in the JANUS 2050 configuration. You cannot download JANUS 2050 configuration commands from the host computer when using off-the-shelf software. Note: For the protocol handler to be active when it is loaded, its corresponding communications protocol must be active. For example, if PC Standard protocol is loaded, it will not become active until the PC Standard protocol is made the active protocol in the JANUS 2050’s configuration.
Loading/Unloading Protocol Handlers at the DOS Prompt When you are using communications from the DOS command line, you can load the protocol handlers from the command line as needed. If you load a protocol handler from the command line, it is recommended that you unload the protocol handler when you are finished to maximize memory. To load a protocol handler, enter this command at the JANUS 2050 DOS prompt {protocol handler} {port}
To unload a protocol handler, enter this command at the JANUS 2050 DOS prompt unload {protocol handler} {port} where: protocol handler is the name of the protocol handler you want to load or unload. For the Intermec protocol handler, enter phimec. For the PC standard protocol handler, enter phpcstd. For the RF protocol handler, enter rfph. port indicates the port for which you are loading or unloading the protocol handler. To load or unload the protocol handler for COM1, enter 1. For example, to load the Intermec protocol handler on COM1, enter the following command at the JANUS 2050 DOS prompt: phimec 1
6-8
Page 140
nubbet code30 iconCommunicating With the JANUS 2050
6
Loading/Unloading Protocol Handlers With a Batch File If you are creating your own application or using 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. An example batch file is listed next. The batch file loads the Intermec and PC Standard protocol handlers, executes the Communications Manager utility, and then unloads the protocol handlers when the Communications Manager is exited. You can modify the example batch file to load only one protocol handler to maximize memory for the application. If a protocol handler is loaded before you run the batch file, that protocol handler will not be unloaded when you exit your application. Note: COMMAND.COM executes files in the order .COM, .EXE, .BAT. Therefore, the batch file that loads the protocol handlers for your program should have a different filename than the executable. If the batch file and the executable have the same filename, the executable is run instead of the batch file.
Example Batch File Command Line
Definition set CMPCST=
Clear the environment variables used by this batch file.
set CMUSER= phimec 1 if not errorlevel 1 set CMUSER=1 phpcstd 1 if not errorlevel 1 set CMPCSTD=1
Load the Intermec protocol handler for COM port 1. If the Intermec protocol handler is already loaded, an error is returned and the variable is not set. Load PC Standard protocol handler for COM port 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 utility. You can replace this with your application executable.
if not "%cmpcstd%"=="1" goto :nopcstd unload phpcstd 1
If the PC Standard protocol handler was loaded by this batch file, unload the PC standard protocol handler.
if errorlevel 1 echo unload failure on pcstd :nopcstd
Check for failure to unload the PC standard protocol handler.
if not "%CMUSER%"=="1" goto :nouser unload phimec 1
If the Intermec protocol handler was loaded by this batch file, unload the Intermec protocol handler.
if errorlevel 1 echo unload failure on userdef :nouser
Check for failure to unload the Intermec protocol handler.
6-9