The text of a manual · part 9 of 19
Falcon DOS Portable Data Terminals Advanced User's Guide, pages 81 to 90
Pages 81 to 90 of 184
The original document is the PDF (7.1 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 PSC 335, PSC 340, PSC 345, Datalogic 335, Datalogic 340 and Datalogic 345
Page 81
Using XFER sets the overwrite option to 2 (overwrite if CRCs don’t match) but doesn’t cause XFER to use COM port 2. The following commands could be used to do this: C:\> xfer /z2o foo C:\> xfer /z2o2 foo C:\> xfer /zo22 foo
In the last example, the first 2 is treated as the setting for the O, and the second 2 is parsed as the COM port to use for the transfer.
The Modem-Initialization File Format The modem-initialization file (modem.ini) contains keyword-and-value pairs, with each pair on a separate line. Each keyword is separated from its value by one or more spaces; tabs and other white-space characters are not valid. Keywords can be in any order within the file. Lines beginning with a # character or with a space character are treated as comment lines and are ignored. The # character can also be used to embed comments within a line. Any characters after a # character in a line are ignored for that line. Individual lines cannot exceed 128 characters in length, including comments, or errors in parsing may occur.
Keywords ACCESS_DELAY: This keyword specifies the number of milliseconds for XFER to wait for a response from the local modem when sending a command to the local modem. The default is 2000 ms (2 seconds). CARRIER_TIMEOUT: This keyword specifies the number of seconds for
XFER to wait for a carrier signal from the remote end before timing out. The default is 60 seconds. COMPRESSION_STRINGS: This keyword specifies a list of response strings
(expected responses from the modem) that indicate that a connection was made using data compression. Because modems often support various types of data compression, they may have more than one string indicating that compression is taking place. Use the COMPRESSION_STRING keyword as many times as necessary to create the desired list. However, the combined
Advanced User’s Guide
3-29
Page 82
Using File Transfer Programs length of all the values assigned to COMPRESSION_STRING cannot exceed 115 characters. DIAL_METHOD: This keyword specifies how the modem attempts to dial phone numbers. This can be T for tone dial or P for pulse dial. ECHO: This keyword indicates whether responses received from the modem should be displayed to the screen. Enable the keyword by setting the value string to T (for true); clear it by setting the value string to F (for false). FAIL_STRINGS: This keyword is a list of response strings (expected responses from the modem) that indicate that the connection to the remote end failed. These strings contain text (such as NO CARRIER and BUSY) that the modem might return on an error. Using a configurable list of errors allows the serial-in/ out modem run-time library to compensate for differences in messages between individual modems. Use the FAIL_STRING keyword as many times as necessary to create the desired list. However, the combined length of all the values assigned to FAIL_STRING cannot exceed 115 characters. HANDSHAKING: This keyword controls the type of handshaking the Falcon will perform with the modem. Generally, RTS/ CTS handshaking is necessary to support the advanced functions of modems, such as compression and errorcorrecting protocols.
Set this keyword to N for no handshaking, X for Xon/Xoff software flow control, or R for RTS/CTS hardware handshaking. The HANDSHAKING keyword in the modem-initialization file takes precedence over any flow-control options selected on the command line in XFER.
INIT_STRING: This keyword specifies the string to use to initialize the modem. The initialization-string value should begin with the AT sequence for Hayes-compatible modems, as the serial in/out modem routines do not attach these characters to the beginning of the initialization string before sending it to the modem. LOCKED_BAUDRATE: When enabled, this keyword indicates that the local modem is configured to communicate with the PC at a fixed baud rate, regardless of the speed of the connection between the modem and the remote
3-30
Falcon® DOS Portable Terminals
Page 83
Using XFER end. This is the normal state of affairs for any modem that supports either data compression or error-correcting protocols. Having this keyword enabled implies that the modem is using hardware handshaking. The baud rate used for a file transfer will be the baud rate set for XFER by the B option (the default is 19200 baud). If the B option is not set, the baud rate used is whatever the modem indicates it is using in the CONNECT message after connecting to the remote end. Enable this keyword by setting the value string to T (for true). Clear it by setting the value string to F (for false). NUMBER#: The NUMBER# keyword specifies a user-defined phone number. The value string can be any sequence of characters that defines a valid number for the modem to dial. Up to ten phone numbers may be specified, with each one assigned a keyword NUMBER0 through NUMBER9. Any number may be assigned to a keyword (unless the number has already been assigned). It is not necessary to define all ten NUMBER# keywords, and they do not need to be defined in numerical order.
See the Mcommand section on page 3-19 for information on how to access the NUMBER# strings to dial when using XFER. PROTOCOL_STRINGS: This keyword is a list of response strings (expected responses from the modem) that indicate that a connection was made using an error-correcting protocol. Since modems often support various error-correcting protocols, they may have more than one string indicating that such a protocol is being used. Use the PROTOCOL_STRING keyword as many times as necessary to create the desired list. However, the combined length of all the values assigned to PROTOCOL_STRING cannot exceed 115 characters.
Advanced User’s Guide
3-31
Page 84
Using File Transfer Programs
Sample ModemInitialization File
INIT_STRING FAIL_STRING FAIL_STRING FAIL_STRING FAIL_STRING FAIL_STRING
ATE1Q0V1X4&C1&D2S7=10s9=6s10=20S11=55S0=2 NO CARRIER ERROR NO DIALTONE BUSY NO ANSWER
# This is a comment. So is this. COMPRESSION_STRING CLASS 5 COMPRESSION_STRING V.42BIS PROTOCOL_STRIN LAPM PROTOCOL_STRIN ALT DIAL_METHOD T # (T)ONE or (P)ULSE dialing CARRIER_TIMEOUT 60 ACCESS_DELAY 2000 LOCKED_BAUDRATE T # (T)RUE or (F)ALSE ECHO T # (T)RUE or (F)ALSE HANDSHAKING R # (R)TSCTS, (X)ONXOFF, or (N)ONE NUMBER0 9 555-1234 NUMBER9 (111) 555-9999 NUMBER5 (111) 555-7777 NUMBER1 9 555-4321
The keywords are all case-sensitive and must be capitalized. For the FAIL_STRINGS, COMPRESSION_STRINGS, and PROTOCOL_STRINGS settings, the value string should also be capitalized. Any responses from the modem are converted to capital letters before being compared with the various substrings.
Performance This section describes issues relating to serial performance on the Falcon. Although these issues are described in the context of XFER, they apply to serial transfers in general. File-transfer speed is severely reduced when byte counts are displayed on the Falcon screen. Use the Q option in XFER to enable quiet mode and speed up transfers (refer to page 3-22). Performance also is diminished when data is transferred to the C drive or to a PCMCIA ATA card. Both of these devices write data to the disk very slowly. Problems may arise as the disks become full and loading algorithms are executed to clean up space for new data. This can become particularly severe with Zmodem in streaming protocol, because the sender never waits for the receiver to write data to the disk. To avoid this problem, use Zmodem with either windowing (refer to page 3-25) or flow control (refer to page 3-18)
3-32
Falcon® DOS Portable Terminals
Page 85
Using XFER enabled. Flow control is generally faster and permits the receiver to operate at its peak capacity. Another factor in performance is the presence of other software running in the background. Card and Socket Services, for instance, use the timer interrupt for certain functions. Because Card and Socket Services chain into this interrupt and execute some code with interrupts disabled, the system may become overburdened when running serial interrupts at high speed (greater than 19200 baud). In this case, overrun, parity, and framing errors become more common, sometimes resulting in an inability to send a file efficiently. If this occurs, select a lower baud rate (refer to page 3-16) and enable flow control (refer to page 3-18).
Advanced User’s Guide
3-33
Page 86
Using File Transfer Programs
Error Codes Table 3-2: lists error codes returned by XFER.
Table 3-2: XFER Error Codes XFER Error Codes Value
0 1 2 3 4 5 6 7 8 9 10 11 20 31 32 33
3-34
Mnemonic
Description
OK ABORT_FILESSKIPPED ABORT_TIMEOUT ABORT_KEYPRESS ABORT_LINEERROR ABORT_FILEERROR ABORT_FTPERROR ABORT_CHECKERROR ABORT_MEMORYERROR ABORT_RECEIVERERROR ABORT_COMERROR ABORT_ARGERROR ABORT_UNKNOWN MODEM_ABORT_CONNECTION MODEM_ABORT_NORESPONSE MODEM_ABORT_INIFILE
All files transferred OK. One or more files were skipped during a multifile download. The transfer was aborted because of a timeout. The abort key (<ESC>) was pressed. A communications line error (e.g., OVERRUN) occurred. A read, write, open, close, or access error occurred on a file. An invalid file-transfer protocol option was selected. A checksum or CRC error occurred. An error occurred while trying to allocate memory from the heap. The receiver encountered a problem and requested to skip the file. An error occurred while opening the COM port. An error in an argument (option setting) occurred on the command line. An unknown error occurred. XFER could not establish a connection with the remote end. The modem did not respond. The specified modem-initialization file could not be found.
Falcon® DOS Portable Terminals
Page 87
4 The Falcon 4-Slot Dock
CHAPTER CONTENTS Overview..................................................................4-2 Operating Modes .....................................................4-2 The 4SLOT.SYS Device Driver ................................4-3 Transferring Files with XFER ..................................4-4 Setting the Baud Rate ..............................................4-5
Page 88
The Falcon 4-Slot Dock
Overview This chapter provides advanced information about using the Falcon 4-Slot Dock. It is intended for use by system administrators and advanced users who need to modify the Falcon 4-Slot Dock’s factory-configuration settings. For basic information about the Falcon 4-Slot Dock, see the Falcon DOS Portable Data Terminals User’s Guide. For information about programming the Falcon 4-Slot Dock, see the Falcon DOS Portable Data Terminals Developer’s Toolkit.
Operating Modes The Falcon 4-Slot Dock network can operate in either of two modes: z In terminal-demand mode (the default), the Falcon 4-Slot Dock network grants access to the communications line to individual portables on a priority basis. z In host-controlled mode, the host controls which portable gets access to the communications line at any time. For information about setting and using these modes, see the Falcon DOS Portable Data Terminals Developer’s Toolkit. XFER, the serial file-transfer utility that comes with Falcon, can access the 4Slot Dock network in terminal-demand mode without any further action from the user. Use XFER to send and receive files from one or more portables to the host (refer to page 4-4). If two or more portables attempt to communicate with the host at the same time, the 4-Slot Dock network arbitrates between them so that each portable gets a chance at the line.
4-2
Falcon® DOS Portable Terminals
Page 89
The 4SLOT.SYS Device Driver
The 4SLOT.SYS Device Driver To use terminal-demand mode within a custom application or to use hostcontrolled mode, the 4slot.sys DOS device driver should be installed on the portable. The 4slot.sys driver extends the capabilities of the DOS COM driver and provides a programming interface so that custom programs can request, detect, and drop access to the 4-Slot Dock communications line. For host-controlled mode, the 4slot.sys driver allows the user to assign a unique name to the portable that the host can use to control that portable's ability to access the 4-Slot Dock communications line. The 4slot.sys driver is included in the Falcon Developer’s Toolkit. For information about purchasing the toolkit, contact a PSC representative.
The xfer.exe program has limited ability to access the Falcon 4-Slot Dock network when the 4slot.sys driver is not loaded. This allows use of the Falcon 4-Slot Dock network to download the Falcon 4-Slot Dock device driver to any portable that doesn’t already have it. The Falcon Configuration Utility can transfer the 4slot.sys driver to the portable and modify the config.sys file. Complete the following steps: 1.
Install the Developer's Toolkit software on the computer. (Follow the installation instructions provided with the Developer's Toolkit.) Be sure to include the 4-Slot Dock software during the installation process. (Install the Falcon Configuration Utility at this point, if not already installed.)
2.
Start the Falcon Configuration Utility, and select the Transfer Files button on the main menu. Find the 4slot.sys file (in the percon\falcon\dos directory if the default installation was used) and transfer it to the c:\dos directory on the Falcon unit.
3.
Transfer the Falcon’s c:\config.sys file to a temporary location on the PC. Using a text editor (for example, Notepad), add the following line to the end of the file: device=c:\dos\4slot.sys
4.
Save the file, and transfer it back to the c:\ directory on the Falcon.
5.
Reboot the Falcon.
Advanced User’s Guide
4-3
Page 90
The Falcon 4-Slot Dock
Save the file list or create a new .cfg file to transfer the 4-Slot Dock driver and modified config.sys file to multiple Falcons units. For complete information about the Falcon Custom Configuration Utility, refer to Chapter 2.
Transferring Files with XFER Files can be transferred with the XFER utility on the portable. XFER has the ability to automatically request access to the communications line from the Falcon 4-Slot Dock, whether the Falcon 4-Slot Dock device driver is loaded or not. To use XFER to transfer a file to the portable, place the portable in a slot on the Falcon 4-Slot Dock. On the portable, type in the command to receive a file, which is typically the following: C:\> xfer /r filename.txt On the host, type the following at a DOS prompt: C:\> xfer filename.txt Once the XFER command is executed on the portable, the portable requests access to the communications line from the Falcon 4-Slot Dock. When access is given to the portable, the COM LED for that slot will come on with a green light. When the XFER command is executed on the host, XFER will transfer the file from the host to the portable. When XFER exits on the portable, the COM LED goes out, indicating that the portable has relinquished access to the communications line. Xmodem uses no flow control, by default. For Zmodem, the default flow control is RTS/ CTS. To use XFER with Zmodem with the 4-Slot Dock, hardware flow control must be turned off using the appropriate XFER command line switch (refer to page 3-18), and XON/XOFF flow control should be used instead. This holds true for any communications software on a Falcon using the 4-Slot Dock.
For complete information about the XFER utility, refer to Chapter 3.
4-4
Falcon® DOS Portable Terminals