The text of a manual · part 24 of 57
JANUS 2020 Hand-Held Computer (4MB) User's Manual, pages 231 to 240
Pages 231 to 240 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 231
JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC
Examining a Typical BFT Session A typical BFT session, with the host computer acting as the client and the JANUS reader acting as the server, includes these activities: •
The host computer and readers are connected with a CrossBar or 900 MHz RF network.
•
The operator starts a BFT-ready PSK application on the reader and either continues working or stops working. Note: A BFT-ready PSK application has been programmed to accept the host’s Prepare for Reboot command, call a Prepare for Reboot PSK function, and notify the PSK library and host computer when the reader is ready to be rebooted. For help creating BFT-ready PSK applications, see your JANUS PSK reference manual.
•
From the host computer, an administrator starts the Data Collection Manager (DCM) or Interface Software (IS) application that manages the BFT process. This application sends a Prepare for Reboot command to a single reader or a group of readers.
•
The PSK application on the reader accepts the Prepare for Reboot command, optionally performs housekeeping tasks (such as closing files), and sends a Ready for Reboot message to the host. This ensures that the host computer has received all data queued in the controllers, as well as indicates that the reader is ready to be rebooted.
•
The host computer sends a Reboot command to the reader or readers. The reader reboots, and a command in AUTOEXEC.BAT starts FTSERVER.BAT if there is a copy of FTSERVER.BAT on drive C. FTSERVER.BAT starts the file transfer application (FTA.EXE). If FTA detects that a host computer rebooted the reader to initiate a BFT session, FTA continues running. Otherwise, it terminates.
•
•
6-46
The host computer can begin sending commands to the FTA: •
The host computer may transfer binary files to and from the reader.
•
The host computer may update the reader’s drive C with a 512K image.
•
The host computer may set the IM_APPLICATION DOS environment variable to an application on the reader that will be run when the FTA terminates.
When the FTA terminates, the reader executes the command identified by the IM_APPLICATION DOS environment variable.
Page 232
NF
BC Networking the Reader
6
Preparing the Reader and Host Computer for BFT To take advantage of BFT, you must set up your reader, host computer, and network as described in this checklist:
‰ Make sure the host computer and readers are connected through a CrossBar or 900 MHz RF network.
To use BFT in a CrossBar network, you must use the Multi-Drop communications protocol. You cannot, for example, use the User-Defined or Polling Mode D communications protocols.
‰ If you use Multi-Drop with BFT, do not set the baud rate higher than 9600 bps.
BFT transmits packets larger than 30 bytes to the reader. If you set the baud rate to 19.2 bps, the reader cannot handle large incoming packets at that speed. An error condition develops: the communications application times out or waits indefinitely on a receive request, and the 9154 Multi-Drop Line Controller’s fault light turns on.
‰ If you are using a 9180 Network Controller or 9154 Multi-Drop Line
Controller, find out the version of the controller’s firmware. You may need to modify the controller’s asynchronous host computer parameters if the controller has an older version of firmware:
9180 If the 9180 firmware version is 2.1 or greater, you do not have to adjust the configuration to support BFT. However, if the version is less than 2.1, you must change the asynchronous host computer parameters to 8 data bits, rather than the default 7 data bits. 9154 If the 9154 firmware version is 2.6 or greater, you do not have to adjust the configuration to support BFT. However, if the version is less than 2.5, you must change the asynchronous host computer parameters to 8 data bits, rather than the default 7 data bits. Note: Intermec does not recommend using Binary File Transfer (BFT) to transfer large files in a CrossBar network with a 9154 Multi-Drop Line Controller. You can contact your Intermec service representative to learn how to order a firmware upgrade for the 9180 and 9154.
‰ The 9161 Multi-Drop and Port Concentrators do not support BFT. ‰ Create a DCM or IS application that will run on the host computer and communicate with the FTA on the reader. For help creating this application, read your DCM or IS documentation.
‰ Enable the Prepare for Reboot and Reboot commands with the Command
Processing command ($+DC) on the reader. These commands allow the reader to respond when the host computer initiates a BFT session. In the reader’s default configuration, these commands are enabled. For help, see “Command Processing” in Chapter 12.
6-47
Page 233
JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC
‰ Copy FTA.EXE and FTA.INI from the Application companion disk 3 to the reader’s drive C. For help adding new files to drive C, see “Adding or Editing Files on Drive C” in Chapter 3.
‰ Run a BFT-ready PSK application on the reader so that when the host computer requests that the reader prepare for reboot, the reader can respond correctly. The PSK application must be programmed to expect the Prepare for Reboot command. For help, see “Prepare for Reboot” in Chapter 11 and your JANUS PSK reference manual.
Differentiating Between Client and Server BFT is a client/server application, and you must decide which device (host computer or reader) is to be the client or 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
The way you start the FTA on the reader determines whether the reader will be the client or server. To make the reader the client 1. Type this command at the reader’s DOS prompt to start the FTA: fta
2. Type this command at the FTA prompt to open a BFT session: open
3. From the reader, type the commands to transfer binary files or update the reader’s drive C.
6-48
Page 234
NF
BC Networking the Reader
6
To make the reader the server There are two ways to make the reader the server: 1. Type this command at the reader’s DOS prompt to start the FTA: fta
2. Type this command at the FTA prompt to make the reader the server: server
3. From the host computer, type the commands to transfer binary files or update the reader’s drive C. Or, 1. Send the Prepare for Reboot command from the host computer to start the FTA on the reader. 2. When you receive the Ready For Reboot message from the reader, send the Reboot command from the host computer to the reader. This command reboots the reader and opens the BFT session. 3. From the host computer, type the commands to transfer binary files or update the reader’s drive C. Note: Because you cannot display the server’s directories from the client, you must already know where each target file is located on the server.
Starting an Application When the FTA Terminates When the host computer is the client, the host computer can identify an application that will be started automatically on the reader when the FTA is terminated on the reader. For example, you finish transferring binary files to the reader, close the connection between the host computer and reader, and terminate the FTA on the reader. Next, you may want to restart the PSK application that was running on the reader when the host computer issued the Prepare for Reboot command. To automatically start an application when the FTA terminates 1. From the host computer, issue a command that sets the reader’s DOS environment variable IM_APPLICATION to an application on the reader. For help, see your DCM or IS documentation. 2. Terminate the FTA on the reader. The %IM_APPLICATION% command in the reader’s AUTOEXEC.BAT executes, running the specified command on the reader. For help, see “Defining the Startup Files” in Chapter 3.
6-49
Page 235
JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC
Using FTA Commands on the Reader When the reader is the client, you can use these FTA commands: CHECKHOST
LUPGRADE
CLOSE
OPEN
EXIT
PUT
GET
RUPGRADE
HELP
SERVER
Typing FTA Commands on the Reader You can use the FTA commands on the reader by • typing a command at the FTA prompt. (The FTA prompt appears when you run the FTA by typing fta at the reader’s DOS prompt.)
• typing one or more commands in a batch file.
• typing one or more commands on the DOS command line. Use a semicolon (;) between each command. For example, type this command and press to open an FTA session, get a file from the host, and exit the session:
@ e:\> fta o; g filename; e where filename is the path and name of the file to be transferred.
6-50
Page 236
NF
BC Networking the Reader
6
Learning the Syntax of FTA Commands This section describes each FTA command and its syntax. You can abbreviate the command names as shown in the Syntax column of the next table. Also, you do not have to capitalize the commands; the commands are not case sensitive.
FTA Command Descriptions and Syntax Command
Description
Syntax
CHECKHOST
Checks if the host computer rebooted the reader and is ready to proceed with the reader as the server and the host computer as the client. You can type this command only from the reader’s DOS command line.
ch [port]
CLOSE
Terminates the connection with the host computer. You can abbreviate this command as CL.
c
EXIT
Terminates the FTA program and returns you to the DOS prompt on the reader.
e
GET
Copies a file from the host computer to the reader.
g hfile [rfile] where: port is the COM port for the connection. If you do not specify a port, the application uses the first port with an active protocol handler.
where: hfile is the path and filename of the file to be transferred from the host computer to the reader.
rfile is the destination path and filename on the reader. If you do not specify a rfile name, the hfile name is used.
HELP
Displays a description of the FTA commands, syntax, and parameters.
h
LUPGRADE
Upgrades the reader’s drive C from the reader. Stands for “local upgrade.” l file c where: file is the path and filename of the image file on the JANUS reader, and C is the drive to be updated.
6-51
Page 237
JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC
FTA Command Descriptions and Syntax (continued) Command
Description
Syntax
OPEN
Establishes a connection with the host computer.
o [port] where: port can be the COM port for the connection. If you do not specify a port, the application uses the first port with an active protocol handler. Once a connection is open, you can type other FTA commands or type to exit.
$
PUT
RUPGRADE
Copies a file from the reader to the host computer.
Upgrades the reader’s drive C from the host. Stands for “remote upgrade.” p rfile [hfile] where: rfile is the path and filename of the file to be transferred from the reader to the host.
hfile is the destination path and filename on the host. If you do not specify an hfile name, the rfile name is used.
r file c where: file
SERVER
6-52
Identifies the reader as the server, not the client. You will type all subsequent FTA commands at the host.
is the path and filename of the image file on the host computer, and C is the drive to be upgraded.
s [port] where: port is the COM port for the connection. If you do not specify a port, the application uses the first port with an active protocol handler.
Page 238
NF
BC Networking the Reader
6
Editing the FTA Initialization File The FTA initialization file (FTA.INI) controls how the FTA operates. You may need to modify INI parameters to match the timeouts with the speed of your network. You can use a standard ASCII text editor to edit the file. This table describes the parameters in the default FTA.INI file, which is stored on Application companion disk 3: Parameter in FTA.INI
Description
HostOpenSessionTimeout=10000
Milliseconds FTA waits for the host to respond to an open session request in which the reader is the client.
HostStartServerTimeout=10000
Milliseconds FTA waits for the host to respond to an open session request in which the reader is the server.
ReceiveRecordTimeout=10000
Milliseconds FTA waits for the host to send the next data record while downloading a file to the reader.
StartUploadTimeout=10000
Milliseconds FTA waits for the host to respond to a request to begin uploading a file from the reader.
StartDownloadTimeout=10000
Milliseconds FTA waits for the host to respond to a request to begin downloading a file to the reader.
HostServerReadTimeout=10000
Milliseconds FTA waits for the host to send a command to the reader when the host is the client.
HostClientReadTimeout=65535
Milliseconds FTA waits for the host to send a command to the reader when the host is the server.
SendRecordTimeout=10000
Milliseconds FTA waits for the reader to transmit a record to the host.
JobRecoverAttempts=1
Number of times FTA attempts to recover a session with the host after that session has been lost.
EndTransmitTimeout=65535
Milliseconds FTA waits for the host to acknowledge that a file upload is complete.
TransmitResponseDelay=5000
Milliseconds FTA allows to elapse before it starts to upload a file from the reader to the host after the host sent the command to begin uploading the file.
ClearChannelTimeout=10000
Milliseconds FTA waits for data when the communications channel is being cleared.
6-53
Page 239
NF
BC
Page 240
NF
BC
7 Working With IRL