Technical information
Chapter 3: AT Commands Reference
August 5, 2008 AT Commands Reference Manual 3-449
+FTPSTOR, Store File On Remote FTP Server
This command causes the G24 to request the remote FTP server to store a file sent by the G24.
Notes:
The user can send a file to the G24 only when the G24 returns <result> = 2. In this case,
the G24 switches to Online Data Mode and all data sent to RS232 transfers as-is to the
remote server.
Important: Before transferring to the remote side, data file is converted (encoded), see
“FTP Connection” on page 1-10. When end-of-file is reached, G24 switches back to
Command Mode and return <result> = 1 (success case).
In any stage of file transfer, an error can occur. In this case, G24 switches to Command
Mode and <result> = 0 is returned to the user.
The following table shows the +FTPSTOR parameters.
Command
Type
Syntax Response/Action Remarks
Set
+FTPSTOR=<file_name>,
[<file_type>]
OK
...
+FTPSTOR: <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
+FTPSTOR? ERROR
Not supported
Test
+FTPSTOR=? +FTPSTOR: (<"file
name">)[,(0-1)]
OK
Return command format
Table 3-293: +FTPSTOR Parameters
<Parameter> Description Range
File name Name of file to be stored on the
remote side.
String, max length is 255 octets.
File type Type of file (ASCII or Binary). Numeric, in the range of 0-1
(0 = ASCII, 1 = Binary).