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 16 of 42

JANUS 2050 Vehicle-Mount Computer (4MB) User's Manual, pages 151 to 160

Pages 151 to 160 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 151

JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon

If you want to load a protocol handler for a designated port and execute Communications Manager, you can include an argument in the command line. To load a protocol handler, enter the following command at the DOS prompt: cmgr -[{port}{ph}] where: port indicates the port for which you are loading the protocol handler. To load the protocol handler for COM1, enter 1. ph is the notation for the protocol handler you want to load. For the Intermec protocol handler, enter i. For the PC Standard protocol handler, enter p. For example, to load the PC Standard protocol handler on COM1 and execute Communications Manager, enter the following command at the DOS prompt: cmgr -1p

Note: When Communications Manager is used with the PC Standard protocol handler, it automatically sets EOR to <CR><LF>, and EOF to <SOH> for file transfers. In the menu bar, there are three pull-down menus: File Select the File menu to designate which port to communicate through, and transmit or receive ASCII files. It also has a section that displays the software version. You quit Communications Manager by choosing Exit from this menu.

Communications File

Cfg

Stat

2050U-030

Cfg Select the Cfg menu to set the communications protocol for each of the JANUS 2050 COM ports and define the parameters for each selected protocol. For a list of the communications protocols and their parameters, see Chapter 10, “Configuration Commands.” Stat Select the Stat menu to view the status of the selected COM port, such as the protocol and parameters being used and whether the port is active or inactive.

6-20

Page 152

nubbet code30 iconCommunicating With the JANUS 2050

6

The commands listed in the File menu are described next: Port This command lets you select which port to communicate through. COM1 is the optical serial port.

Communications File

Cfg

Stat

Port... Transmit... Receive... About Exit

2050U-032

Transmit Transmits the selected file through the designated COM port. A screen displays the status of the transfer.

Receive Stores the file it receives from the designated COM port under the selected filename. A screen displays the status of the transfer. About

Displays the software version.

Exit

Exits the Communications Manager.

Use the following instructions to move around in the menus and select commands •

When a pull-down menu is displayed, select a command by pressing h or j to move the highlight to the desired command, and then press e to choose the command.

•

The dialog boxes list the options for that menu. When a dialog box is displayed, press h or j or Tab/BackTab to move to the desired field.

•

Pressing e is the same as choosing OK. It exits the dialog box and saves the changes.

•

Pressing d is the same as choosing CANCEL. It exits the dialog box without saving changes.

•

To exit Communications Manager, select Exit in the File pull-down menu and press e .

You can scan the bar code labels listed in Appendix A to move the cursor through the communications menus instead of pressing keys.

Using a Command Line You can use a DOS command line instead of the menu system to transmit and receive files with the Communications Manager utility. The syntax for the command is: cmgr -[{port}{ph}] -p{port} -s{direction} -f[path\]{filename}

6-21

Page 153

JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon where: [{port}{ph}] indicates the port and protocol handler you are loading. To load the protocol handler for COM1, enter 1. You enter i to load the Intermec protocol handler, and p to load the PC Standard protocol handler. For example, to load the PC Standard protocol handler for COM1, enter -1p. port is the communications port. For example, to specify COM port 1 enter -p1. direction indicates whether you are transmitting (T) or receiving (R). For example, to receive a file, enter -sr. path\ indicates the directory for the file you are transmitting or receiving. If no directory is entered, the current working directory is used. filename indicates the file you are transmitting or receiving. For example, to load the PC Standard protocol handler on COM1 and transmit a file called TEST.DAT from COM1, you enter the following command at the DOS prompt: cmgr -1p -p1 -st ftest.dat

Downloading Applications Across the Network You can use binary file transfer (BFT) to download applications to JANUS devices in 900 MHz RF and CrossBar networks. BFT can perform these tasks with or without assistance from the person operating the device: •

Interrupt any PSK application, reboot the device, and start the file transfer application (FTA) on the device

•

Transfer binary files (for example, an application) with error detection

•

Change the contents of the JANUS drive C by loading a new image file

•

Run any program on the device when the transfer or update is complete

Note: The BFT functionality is provided by the file transfer application (FTA.EXE), which is stored on the Application companion disk 3.

6-22

Page 154

nubbet code30 iconCommunicating With the JANUS 2050

6

Examples of Using BFT The next two examples illustrate how you can use BFT to update applications on networked JANUS devices by transferring new binary files to the devices.

Example 1: Updating Several JANUS Devices From a Host Computer

Remote PC JANUS devices in warehouse

2050U.023

From a single host computer, a system administrator uses BFT to download a new version of a data collection application simultaneously (using group queues) to every device on the RF network in the warehouse while the operators are on their lunch break.

6-23

Page 155

JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon

Example 2: Downloading an Executable File From a Host Computer

JANUS Printer Remote PC

2050U.024

A service technician is using a JANUS device to diagnose problems with a printer in the RF network. The technician may decide to use a test application that is stored on another computer in the RF network. Using BFT, the technician can download the application to the device - without walking back to the computer, connecting the device to the host computer, and using Interlnk to transfer the application.

6-24

Page 156

nubbet code30 iconCommunicating With the JANUS 2050

6

Examining a Typical BFT Session A typical BFT session, with the host computer acting as the client and the JANUS device acting as the server, includes these activities: •

The host computer and devices are connected with a CrossBar or 900 MHz RF network.

•

The operator starts a BFT-ready PSK application on the device 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 device 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 device or a group of devices.

•

The PSK application on the device 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 device is ready to be rebooted.

•

The host computer sends a Reboot command to the device or devices. The device 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 device to initiate a BFT session, FTA continues running. Otherwise, it terminates.

•

•

The host computer can begin sending commands to the FTA: •

The host computer may transfer binary files to and from the device.

•

The host computer may update the device’s drive C with a 512K image.

•

The host computer may set the IM_APPLICATION DOS environment variable to an application on the device that will be run when the FTA terminates.

When the FTA terminates, the device executes the command identified by the IM_APPLICATION DOS environment variable.

6-25

Page 157

JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon

Preparing the Device and Host Computer for BFT To take advantage of BFT, you must set up your device, host computer, and network as described in this checklist:

‰ Make sure the host computer and devices 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 device. If you set the baud rate to 19.2 bps, the device 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 device. For help creating this application, read your DCM or IS documentation.

6-26

Page 158

nubbet code30 iconCommunicating With the JANUS 2050

6

‰ Enable the Prepare for Reboot and Reboot commands with the Command Processing command ($+DC) on the device. These commands allow the device to respond when the host computer initiates a BFT session. In the default configuration, these commands are enabled. For help, see “Configuration Commands” in Chapter 10.

‰ Copy FTA.EXE and FTA.INI from the Application companion disk 3 to drive C on the JANUS 2050. For help adding new files to drive C, see “Learning How to Change the Contents of Drive C” in Chapter 3.

‰ Run a BFT-ready PSK application on the device so that when the host computer requests that the device prepare for reboot, the device can respond correctly. The PSK application must be programmed to expect the Prepare for Reboot command.

Differentiating Between Client and Server BFT is a client/server application, and you must decide which device (host computer or device) 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:

PC

Client

Server

2050U.025

The way you start the FTA on the device determines whether the device will be the client or server.

6-27

Page 159

JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon

To make the device the client 1. Type this command at the device’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 device, type the commands to transfer binary files or update the device’s drive C. To make the device the server There are two ways to make the device the server: 1. Type this command at the device’s DOS prompt to start the FTA: fta 2. Type this command at the FTA prompt to make the device the server: server 3. From the host computer, type the commands to transfer binary files or update the device’s drive C. Or, 1. Send the Prepare for Reboot command from the host computer to start the FTA on the device. 2. When you receive the Ready For Reboot message from the device, send the Reboot command from the host computer to the device. This command reboots the device and opens the BFT session. 3. From the host computer, type the commands to transfer binary files or update the device’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.

6-28

Page 160

nubbet code30 iconCommunicating With the JANUS 2050

6

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 device when the FTA is terminated on the device. For example, you finish transferring binary files to the device, close the connection between the host computer and device, and terminate the FTA on the device. Next, you may want to restart the PSK application that was running on the device 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 device’s DOS environment variable IM_APPLICATION to an application on the device. For help, see your DCM or IS documentation. 2. Terminate the FTA on the device. The %IM_APPLICATION% command in the device’s AUTOEXEC.BAT executes, running the specified command on the device. For help, see “Defining the Startup Files” in Chapter 3.

Using FTA Commands on the Device When the device is the client, you can use these FTA commands: CHECKHOST

LUPGRADE

CLOSE

OPEN

EXIT

PUT

GET

RUPGRADE

HELP

SERVER

Typing FTA Commands on the Device You can use the FTA commands on the device by: • typing a command at the FTA prompt. (The FTA prompt appears when you run the FTA by typing fta at the device’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-29