使用 ATE 传输文件

使用以下过程可将文件从本地主机传输到远程系统中。

请在尝试使用 ATE 传输文件前验证是否满足以下所有必备软件和条件。
  • 必须已经用 ATE 程序建立了连接。
  • 必须在本地和远程系统上都有 Xmodem 文件传输协议。 在操作系统上,Xmodem 位于 /usr/bin 目录中。
  1. 登录后在远程系统上运行以下 xmodem 命令:
    xmodem -r newfile

    ,其中 r 是 Xmodem 的接收标志, newfile 是将要接收的文件的名称。 该名称无需与被传输的文件同名。

  2. 请按 Enter 键。
  3. 将显示以下消息:
    ate: 0828-005 The system is ready to receive file newfile. Use Ctrl-X to stop xmodem.

    如果没有显示该消息,那么系统可能并未安装 xmodem 程序,或未将该程序置于其命令路径中。

  4. 按 Ctrl-V 以返回到 ATE 的“已连接主菜单”上。
  5. 按 S 键可发送文件。
  6. 将显示以下消息:
    Type the name of the file you wish to send and press Enter. To use the last
    file name (), just press Enter.
  7. 输入将被传输的文件的文件名和完整路径。
  8. 请按 Enter 键。
  9. ATE 将显示以下信息并开始传输此文件:
    ate: 0828-024 The program is ready to send file newfile. You will receive another 
    message when the file transfer is complete.
    ate: 0828-025 The system is sending block 1.
    ate: 0828-025 The system is sending block 2.
    ate: 0828-015 The file transfer is complete.
    ate: 0828-040 Press Enter
  10. 当传输结束时,请按 Enter 键。