Technical information

FTP (File Transfer Protocol)
3-450 AT Commands Reference Manual August 5, 2008
Example
The example illustrates the command execution. Requested file type is binary.
AT+FTPSTOR="somefile.name",1
+FTPSTOR: 2
The user sends a file with <end-of-file> here
+FTPSTOR: 1
+FTPRETR, Retrieve a File From a Remote FTP Server
This command causes the G24 to request the remote FTP server to send a file to the G24.
Notes:
The user can store a file, received from G24, immediately after G24 returns <result> = 2.
In this case G24 switches to Online Data Mode and all data, received from the RS232 is
the requested file.
Important: The user converts (decode) the received data file for end-of-file detect, see
“FTP Connection” on page 1-10. When the remote FTP server closes data connection,
G24 switches back to Command Mode and returns <result> parameter = 1 (success case).
In any stage of file transfer, an error can occurred. In this case, G24 switches to Command
Mode and <result> = 0 is returned to the user.
Command
Type
Syntax Response/Action Remarks
Set
+FTPRETR=<file_name>,
[<file_type>]
OK
...
+FTPRETR: <result>
or
ERROR: <error_code>
<file_name> parameter
consists of the file name
as well as the file path
(optional).
<file_type> parameter is
optional. Default value is
1 (binary).
The command execution
result return to the user as
an unsolicited response:
0 - operation failed
1 - operation succeeded
2 - data connection
(ODM) enabled
Read
+FTPRETR? ERROR
Not supported
Test
+FTPRETR=? +FTPRETR: (<"file
name">)[,(0-1)]
OK
Return command format