Transfers files with the xmodem protocol, detecting data transmission errors during asynchronous transmission.
The xmodem shell command is used with the Asynchronous Terminal Emulation (ATE) program to transfer a file, designated by the FileName parameter, using the xmodem protocol.
The xmodem protocol is an 8-bit transfer protocol to detect data transmission errors and retransmit the data. The workstation sending data waits until the remote system sends a signal indicating it is ready to receive data.
After the receiving system get data, it returns an acknowledgment to the sending system. In the ATE program the receiving system times out if data is not received within 90 seconds after the file transfer is initiated.
Sending and receiving with the xmodem command are complementary operations. One system must be set to send while the other is set to receive. Use the xmodem command on the remote system in combination with the send subcommand or the receive subcommand from the ATE Connected Main Menu on the local system.
To interrupt an xmodem file transfer, press the Ctrl-X key sequence.
:%s/<Ctrl-V><Ctrl-M>//
where <Ctrl-V>
and <Ctrl-M> each represent a single control character that
is typed. However, since Ctrl-V is the default ATE MAINMENU_KEY, the
ATE defaults must be altered in order to issue the vi subcommand
while logged in via ATE. Item | Description |
---|---|
-r | Receives data from the local workstation. |
-s | Sends data to the local workstation. |
Sending a File with the xmodem Protocol
To send the file myfile with the xmodem protocol, use the ate command and the connect or directory subcommand to establish a connection to the remote system.
xmodem -r myfile
at the shell command line.
The xmodem protocol starts receive mode on the remote system.The ATE Connected Main Menu displays.
s myfile
The send subcommand instructs
the local system to send myfile to the remote system. After
transferring the file, the ATE Connected Main Menu displays.Receiving a File with the xmodem Protocol
Receive the file infile from a remote system using xmodem protocol with the ate command and the connect or directory subcommand establishing a connection to the remote system.
xmodem -s infile
at
the shell command line. The xmodem protocol starts, in send
mode, on the remote system.The ATE Connected Main Menu displays.
r infile
The receive subcommand
instructs the local system to receive infile from the remote
system. After transferring the file, the ATE Connected Main Menu displays.Item | Description |
---|---|
ate.def | Contains ATE default values. |