Multitech GPRS Uživatelský manuál Strana 28

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 74
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 27
Chapter 4 – FTP Services
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333B) 28
#FTPPUT Put Data to Server
Definition: This command sent by the attached host directs the TCP/IP stack to connect to the specified FTP
server and to upload the data received on the serial port to the specified file on this server. Once the
operation is completed, the TCP/IP stack closes the FTP connection.
Once an IP link is established, the attached host can send a file to a FTP server at any time (except
when the TCP/IP stack software is already in a process using TCP resources).
This command is similar to a PUT operation (with an automatic connect/disconnect) issued by a
standard FTP client on a PC. The TCP/IP stack handles the global FTP put process by itself.
Note: The TCP/IP stack will interpret only an <ETX> character as the end of the file to be transferred if
it’s not preceded by a <DLE> character. As a consequence, the attached host must send <ETX>
characters preceded by <DLE> characters, and it must also code <DLE> characters as <DLE><DLE>.
Values: Read Parameters:
FTPPUTFILENAME
FTPPUTPATH
FTPPORT
FTPSERV
FTPPW
FTPUN
Syntax: AT#FTPPUT
Command Possible Responses
AT#FTPPUT
Note: Start
sending data
OK_WaitingForData
Note: TCP/IP stack is ready to send data from the serial port to the remote FTP
server. TCP/IP stack then immediately transfers all the data sent by the
attached host to the remote FTP server. To notify the TCP/IP stack that all data
has been sent, the attached host must send the <ETX> character.
<ETX>
Note: Notification from the host for end of data: switches from data to command mode.
OK
Note: The FTP process was successfully completed.
AT#FTPPUT #CME ERROR: 38027
Note: The address of the FTP server has not been resolved by the secondary DNS
server. TCP/IP stack is not able to reach the primary or secondary DNS servers
or a wrong FTP server address has been filled in.
AT#FTPPUT #CME ERROR: <value>
Note: The connection to the FTP server failed. See section ‘Response messages and
error codes’. If an error occurs once the data transfer started, it is preceded by
an ETX character.
#VFTP Display FTP Parameters
Definition: This command directs the TCP/IP stack to display all AT# parameters for the FTP client configuration.
Values: Read Parameters:
FTPSERV
FTPPORT
FTPUN
FTPPW
FTPGETFILENAME
FTPGETPATH
FTPPUTFILENAME
FTPPUTPATH
FTPTYPE
Syntax: AT#VFTP
Command Possible Responses
AT#VFTP
Note: View FTP parameters
#FTPSERV: “mytestwebsite.com”
#FTPPORT: 21
#FTPUN: “myname”
#FTPPW: “mypass”
#FTPTYPE: = 1
#FTPGETFILENAME: “”
#FTPGETPATH: “.”
#FTPPUTFILENAME: “Testseb3.txt”
#FTPPUTPATH: “.”
OK
Zobrazit stránku 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 73 74

Komentáře k této Příručce

Žádné komentáře