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 7 of 19

Falcon DOS Portable Data Terminals Advanced User's Guide, pages 61 to 70

Pages 61 to 70 of 184

The original document is the PDF (10 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 Datalogic F330 and PSC F330

Page 61

advuser.book Page 9 Friday, September 27, 2002 4:22 PM

Sending and Receiving Data

Send File (to Portable) 1.

Select Transfer Files > Send File from the menubar.

Figure 3-6: Send File to Portable Window

2.

Select the file(s) to send. z You can select multiple files if you are using the ZModem protocol.

3.

Click Open to send the file to the data collection terminal z Press Cancel to not send any files

If the Path/Filename Transmission is set to Specify Receiver’s File/Pathname, the file names may be altered prior to being sent to the receiver. A Send File As... dialog is displayed to permit the changing of the path/name of each file. The dialog contains a list of each file to be sent. The left column displays the path/name of each file as it exists on this computer. The right column displays the same file as seen by the receiver. To change the path/name assigned to a file, select the filename to change, and then click Edit. Or, double-click the filename from the list.

Receive File (from Portable) When receiving files from a data collection terminal, a prompt appears. Enter the name of the incoming file. 1.

Select Transfer Files > Receive from the menubar.

Advanced User’s Guide

3-9

Page 62

advuser.book Page 10 Friday, September 27, 2002 4:22 PM

Using File Transfer Programs Receive File from Portable Window

2.

Select (or enter) a filename for the file. z You can select multiple files if you are using the ZModem protocol. z Filenames are assigned to files in the order listed in the File Name field. z You can also use the filename(s) supplied by the sender. Press Cancel to select this option.

3.

Click Open to begin receiving the file. z Press Cancel to not receive any files.

Using XFER XFER (xfer.exe) is a DOS utility that directs the serial transfer of ASCII and binary data between two computers. This chapter provides information for advanced users and system administrators who want to use XFER to transfer files between a Falcon and a PC. For basic information about XFER, refer to page 1-11.

3-10

Falcon® DOS Portable Terminals

Page 63

advuser.book Page 11 Friday, September 27, 2002 4:22 PM

Using XFER XFER runs on Falcon portables using DOS. Use XFER32XFER32 on the Host PC with Win32. Use the native on-help with XFER32. When using Z-modem, flow control must be the same on both sides of the transmission. Normally, XFER defaults to RTS/CTS flow control. On the Falcon 33x and 34x, it defaults to Xon/Xoff. When transferring files between a 33x or 34x and the host PC, make sure the PC is also using Xon/Xoff. See the /F option on page 3-18 for more details.

XFER supports Xmodem and Zmodem transfers at speeds up to 115200 baud. Modem support is provided via an initialization file that specifies option settings for the modem. Option settings can be specified on the command line or with an environment variable called XFER_ARGS. XFER supports RTS/CTS handshaking for Xmodem protocol and both XON/ XOFF and RTS/CTS handshaking for Zmodem protocol.

Syntax and Parameters The command line syntax for XFER is as follows: XFER [/option1 [/option2] . . .] filename(s)

Use a slash (/) or a hyphen (-) to denote options, and use uppercase or lowercase letters for them. Options can be placed before or after filenames on the command line. Basic options and their defaults are listed and described in Table 3-1. The Default column indicates whether the option is used (On) or ignored (Off) if it is not included in the command line. For options that have two or more possible values, the default value is given. A page number for each option indicates where a full explanation can be located in this manual.

Advanced User’s Guide

3-11

Page 64

advuser.book Page 12 Friday, September 27, 2002 4:22 PM

Using File Transfer Programs Table 3-1: XFER Parameters Default Option filename(s) (page 3-14) @file (page 3-15) # (page 3-16) B# (page 3-16)

C# (page 3-16)

D# (page 3-17)

E# (page 3-18)

F# (page 3-18) H or ? (page 3-19)

3-12

Description

Identifies the file to be transferred or received. (Zmodem only) Specifies a response file consisting of two or more names of files to be transferred. Replace file with the name of the response file to use. Specifies the communications port to use. Replace the # symbol 2 = COM2 with the desired setting: 1 = COM1 Specifies the baud rate. Replace the # symbol with the desired setting: 2400 4800 9600 19200 38400 57600

Xmodem

Zmodem

None

None

N/A

None

1

1

19200

19200

N/A

1

60

60

0

0

0

1 = Falcon 33x or 34x 2 = all other Falcon models

None

None

115200 (Zmodem only) Specifies how the retransmission of a file should be handled if a previous transfer was interrupted. Replace the # symbol with the desired setting: 1 = Never recover (start transmission from the beginning of the file) 2 = Follow sender (use the sender’s crash-recovery options; ignore the receiver’s) 3 = Always recover (send data from the point where transmission was interrupted) Specifies the number of seconds for XFER to wait for activity before cancelling the transfer. Replace the # symbol with the desired number of seconds for the timeout delay. Acceptable values are 0 (no timeout) through 65,535. Specifies the maximum number of times XFER should attempt retransmission of a packet after an error occurs. If the final attempt fails, XFER aborts the transfer. Replace the # symbol with the desired maximum number of attempts. A setting of 0 allows for unlimited attempts. Specifies the type of flow control to use for data transfer. Replace the # symbol with the desired setting: 0 = No flow control 1 = XON/ XOFF (Zmodem only) 2 = RTS/ CTS Displays help for the XFER command.

Falcon® DOS Portable Terminals

Page 65

advuser.book Page 13 Friday, September 27, 2002 4:22 PM

Using XFER Default Option

Description Xmodem

Ifile (page 3-19)

Mcommand (page 3-19)

N (page 3-20)

O# (page 3-20)

Q (page 3-22) R (page 3-22)

S# (page 3-23)

T (page 3-24)

Specifies the modem-initialization file. Replace file with the modem.ini name of the file to use. Sends a command to the modem before beginning the data transfer. Replace command with one of the following: A = Auto answer None ATstr = Send ATstr commands D#x = Dial memory #x (0–9) Dstr = Dial phone number str Forces XFER to ignore all previously specified option settings, Off including filenames and options specified in the XFER_ARGS environment variable. All XFER options are set to their default state. Overwrites an existing file with a new file having the same name. Replace the # symbol with the desired setting: 1 = Overwrite if source is longer or newer (Zmodem only) 2 = Overwrite if CRCs don’t match (Zmodem only) 3 = Append to existing file (Zmodem only) 7 4 = Always overwrite 5 = Overwrite if source is newer (Zmodem only) 6 = Overwrite if dates or lengths don’t match (Zmodem only) 7 = Never overwrite Toggles quiet mode on and off. In quiet mode, only the filename and a “Transmitting...” or “Receiving...” Off message is displayed. When quiet mode is off, additional information is displayed. Each use of this option reverses the quiet-mode state. Receives the specified file or files. Off (Zmodem only) Specifies how paths and names should be handled when sending files. Replace the # symbol with the desired setting: 0 = Strip paths 1 = Send paths 2 = Send new paths/filenames Transmits the specified file or files.

Advanced User’s Guide

Zmodem modem.ini

None

Off

7

Off On if no file is specified

N/A

0

On

On if file is specified

3-13

Page 66

advuser.book Page 14 Friday, September 27, 2002 4:22 PM

Using File Transfer Programs Default Option

W# (page 3-25) X (page 3-26) Z (page 3-26)

Description

Window size (Zmodem only): x = Packet size, in bytes 0 = Streaming Uses Xmodem protocol for the transfer.

Xmodem

Zmodem

N/A

0

Uses Zmodem protocol for the transfer.

filename(s) Name(s) of the File(s) to Send or Receive: Xmodem Only one file can be transferred at a time. The entire path can be specified, including the drive letter. If the path is not specified, the file is sent from or received into the current directory. If the directory or file doesn’t exist on a send, or the directory doesn’t exist on a receive, the transfer will fail, with a fileopen error. The filename must be included on the command line when receiving a file. If multiple files are specified for Xmodem, only the first file will be transferred. All other file names will be ignored. Zmodem Zmodem allows up to 256 files to be transferred in one session. The entire path for each file can be specified, including the drive letter. If a path is not specified, the file is sent from or received into the current directory. If the directory or the file doesn’t exist on a send, or the directory doesn’t exist on a receive, the transfer will fail, with a file-open error. DOS accepts only 128 characters on the command line, but a response file can be used to get around this limitation. (Refer to the @file option on page 3-15.) When receiving, the filename does not need to be specified for Zmodem. Zmodem transfers the name of the file to be sent before sending the file. (See the S option on page 3-23 for information on controlling how Zmodem sends the filename.) Any filename specified on the receiving end will override the default name that is sent by the sender. When multiple files are sent, a one-to-one correspondence is established. For example, if ten filenames are specified on the sender’s side and five filenames are specified on the receiver’s side, the first five files transferred will be received with the names specified on the receiver’s command line, while the last five files 3-14

Falcon® DOS Portable Terminals

Page 67

advuser.book Page 15 Friday, September 27, 2002 4:22 PM

Using XFER will be received with the names specified on the sender’s command line (assuming all the files exist). Each filename on the command line can include its own path. XFER also recognizes the wildcard characters ? and *. Normal DOS patternmatching rules for these characters apply. Be careful about using wildcards when receiving: XFER expands the wildcards of the specified filenames and then searches for any matching patterns in the specified directory. If no matching files are found (in an empty directory, for instance), then no filenames will be sent to the Zmodem receive procedures. This may or may not be what was intended. Also, DOS does not store files in alphabetical order, and so using *.* to both send and receive files may result in files being renamed because they are loaded in a different order. This can occur even if the file lists on both sides of the transfer are the same. @file Response File (Zmodem only): The @file option allows use of a “response file” for specifying filenames when conducting Zmodem transfers. This option allows circumvention of the DOS limitation of 128 characters on the command line when sending many files in a single transfer session. When using a response file, fill the file with the filenames to be sent or received. The filenames may include drives and paths. One filename should appear on each line of the response file. Up to 256 files can be specified in this way. The following is a sample response file, named response.txt: autoexec.bat c:\programs\theprog.exe c:\data\file1.dat c:\data\file2.dat c:\data\file3.dat

Not all the filenames need to be specified in the response file. For example, the following command would send seven files, including the five in response.txt above. xfer /z c:\default\config.sys /@response.txt c:\data\file4.dat

In this case, each filename is read in as it appears on the command line. The file c:\default\config.sys would be the first one sent, the autoexec.bat file specified in the response.txt file would be the second file sent, and the c:\data\file4.dat file specified on the command line would be the seventh file sent. Multiple response files can be specified. Regardless of the number of response files used, the 256-file limitation for a single transfer session is always in effect.

Advanced User’s Guide

3-15

Page 68

advuser.book Page 16 Friday, September 27, 2002 4:22 PM

Using File Transfer Programs

If a response file is included in the XFER_ARGS environment variable (refer to page 3-26), the N option can be used to ignore the response file and start from a default condition (refer to page 3-20). Response files can be used with the S2 option (refer to page 3-23). In this case, the format for the response file would be: autoexec.bat c:\autoexec.bat c:\programs\theprog.exe c:\prog.exe c:\data\file1.dat d:\data1 c:\data\file2.dat d:\data2 c:\data\file3.dat d:\data3

In this case, the first filename on a line specifies the file on the sender’s side. The second filename on the line specifies the filename the sender will pass to the receiver. The receiver’s filename is separated from the sender’s filename by a single space. If more than one space is used, the additional spaces will be included as part of the receiver’s filename. Because a space character is used as a delimiter, Windows 95 and Windows NT filenames with spaces as part of the filename will not be parsed correctly and should not be used. Placing quotes around the filename will not help in this situation.

The @file option can be used only in Zmodem transfers. The Z option must be specified before the @file option. If a response file is used with the S2 option, the S2 option must be specified before the @file option. All other rules governing filenames apply to response files. # COM Port: This option specifies the communications port to use for the file transfer. Replace the # symbol with the desired setting: 1 = COM1

2 = COM2

B# Baud Rate: This option specifies the baud rate to be used for the file transfer. Replace the # symbol with the desired setting: 2400 4800 9600 19200 38400 57600 115200 C# Crash Recovery (Zmodem only): Crash recovery refers to the ability of Zmodem protocol to detect that a file transfer was not completed and to attempt to recover at the point of failure (instead of recopying the entire file). For instance, if the communications link is severed during the transfer of a 10K file, with only 5K of data successfully transferred, crash recovery can be used to send the remaining 5K without resending the entire 10K file.

3-16

Falcon® DOS Portable Terminals

Page 69

advuser.book Page 17 Friday, September 27, 2002 4:22 PM

Using XFER

This option is supported by Zmodem protocol only. Xmodem will never attempt to recover a file after a crash.

Crash recovery uses the CRC of the sender’s and receiver’s files to ensure that the portion of the file that was successfully received in the first transfer is identical to that portion of the sender’s copy of the file. If this is true, then the receiver instructs the sender to begin sending data beginning at the point in the file that corresponds to the end of the file on the receiver’s side. By default, crash recovery is turned off. To use the C option, replace the # symbol with the desired setting: 1 - No crash recovery 2 - Follow sender 3 - Always use crash recovery If the C option is used without including a number, then the 1 setting is assumed. An invalid setting will result in an error on the command line. The C option can be used in conjunction with the O option. If C2 (follow sender) is specified on the command line, the receiver will use the sender’s crash and overwrite options. Any overwrite options local to the receiver will be ignored. This is useful if a default crash-recovery command is specified in the XFER_ARGS environment variable (refer to page 3-26) and crash recovery for the current transfer is temporarily disabled. D# Delay Before Terminating Transmission: This option allows specifying a timeout. If the specified number of seconds elapse with no characters received by either the sender or the receiver, the program aborts the transfer session. This option is supported by Zmodem protocol only. Xmodem will never attempt to recover a file after a crash.

To use the D option, replace the # symbol with the desired number of seconds for the timeout delay. Acceptable values are 0 (no timeout) through 65,535; the default is 60. A value of 0 disables the timeout feature, meaning that the transfer session will never be aborted because of inactivity. If the D option is used without specifying a number, an error will occur.

Advanced User’s Guide

3-17

Page 70

advuser.book Page 18 Friday, September 27, 2002 4:22 PM

Using File Transfer Programs

E# Maximum Number of Errors Before Aborting Transfer: The E option is used to specify the maximum number of times the receiver will request a retransmission of a packet before aborting the transfer session. For multiple file transfers in Zmodem, the entire session is aborted, not just the transfer of the current file.

The default is 0, meaning the transfer will never be aborted because of errors. If the E option is used without specifying a number, an error will occur. F# Flow Control: This option is used to specify what type of flow control to use for the file transfer. Flow control is the ability of the receiver to detect that data is coming in faster than it can receive and to issue a command to the sender instructing it to stop sending data. When the receiver is again able to handle new data, it issues another command instructing the sender to resume the transfer of data. XFER supports two types of flow control: software (XON/XOFF) and hardware (RTS/CTS). Only one type can be used at a time. The sender and receiver should have this option enabled similarly. To use the F option, replace the # symbol with the desired setting: 0 - No flow control 1 - XON/ XOFF (Zmodem only) 2 - RTS/ CTS If the F option is used without specifying a number, it is assumed to mean F0, or no flow control. This is useful in the case where flow control is specified in the XFER_ARGS environment variable (refer to page 3-26) but flow control is turned off for the current transfer session. An invalid setting will result in an error on the command line. The RTS/CTS flow control option is only available when using XFER with the Falcon 31x and 32x.

Flow control defaults and capabilities differ depending upon the protocol (Xmodem or Zmodem) being used.

3-18

Falcon® DOS Portable Terminals