FTP AT commands are not working for the freeware FTP server site

7 thoughts on “FTP AT commands are not working for the freeware FTP server site

  1. I am using GL868-Dual telit modem. I am trying to test FTP AT commands using freeware FTP server like “drivehq.com”, “filegenie.com”. I have created server on these sites. I can login/ logout of these server using FTP AT commands “AT#FTPOPEN”, “AT#FTPCLOSE”. also cmds: AT#FTPPWD, AT#FTPCWD are executing properly.

     

    If I try to read/write FTP file using AT commands then it will give me error: +CME ERROR:606. But if I directly read/write file (i.e. without using AT commands) then it works properly.

    List of FTP AT commands that gives me error:

    AT#FTPPUT, AT#FTPGET, AT#FTPLIST, AT#FTPAPP, etc…

     

    But all above mentioned FTP AT commands work properly with our own company’s properitary FTP server. 

     

    So is there any restrictions for such freeware ftp server, that one cannot read/write ftp file using AT commands?

      1. I am working with Active FTP mode. But how can I find my firmware version?

        I am using GL868-Dual Telit modem. 

    1. AT+CGMR=10.00.186

       

      I have tried using FTP in passive mode. It gets connected with "ftp.filegenie.com", "ftp.drivehq.com". I can also read/write data using AT#FTPGET, AT#FTPPUT command. But if I try to write data in append mode (i.e. AT#FTPAPP=<filename>,1), then it gives me error +CME ERROR:606.

       

      I have also tried connecting our company’s properietary FTP server in passive mode. All above mentioned commands are working properly.

       

      As my application is like, I have to append the data in one ftp file only. So how can I do this? 

       

      My FTP server log is given below:

       

      STATUS:>               [01-Jul-14
      5:34:33 PM] Getting listing ""…

      STATUS:>               [01-Jul-14
      5:34:33 PM] Resolving host name http://ftp.filegenie.com...

      STATUS:>               [01-Jul-14
      5:34:33 PM] Host name http://ftp.filegenie.com resolved: ip = 67.205.91.17.

      STATUS:>               [01-Jul-14
      5:34:33 PM] Connecting to FTP server… http://ftp.filegenie.com:21 (ip =
      67.205.91.17)…

      STATUS:>               [01-Jul-14
      5:34:33 PM] Socket connected. Waiting for welcome message…

                                      [01-Jul-14
      5:34:34 PM] 220 FGFS FileGenie FTP Server (1.0B) (C) 2002 DreamWerx Inc.

      STATUS:>               [01-Jul-14
      5:34:34 PM] Connected. Authenticating…

      COMMAND:>         [01-Jul-14 5:34:34 PM] USER abc

                                      [01-Jul-14
      5:34:34 PM] 331 User name okay, need password for abc

      COMMAND:>         [01-Jul-14 5:34:34 PM] PASS *****

                                      [01-Jul-14
      5:34:34 PM] 230 User logged in, proceed

      STATUS:>               [01-Jul-14
      5:34:34 PM] Login successful.

      COMMAND:>         [01-Jul-14 5:34:34 PM] PWD

                                      [01-Jul-14
      5:34:34 PM] 257 "/" aka [0] is current directory

      STATUS:>               [01-Jul-14
      5:34:34 PM] Home directory: /

      COMMAND:>         [01-Jul-14 5:34:34 PM] FEAT

                                      [01-Jul-14
      5:34:35 PM] 502 Command FEAT not implemented

      STATUS:>               [01-Jul-14
      5:34:35 PM] This site doesn’t support the ‘features’ command.

      COMMAND:>         [01-Jul-14 5:34:35 PM] REST 100

                                      [01-Jul-14
      5:34:35 PM] 350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer

      STATUS:>               [01-Jul-14
      5:34:35 PM] This site can resume broken downloads.

      COMMAND:>         [01-Jul-14 5:34:35 PM] REST 0

                                      [01-Jul-14
      5:34:35 PM] 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer

      COMMAND:>         [01-Jul-14 5:34:35 PM] PASV

                                      [01-Jul-14
      5:34:35 PM] 227 Entering Passive Mode (67,205,91,17,230,81)

      COMMAND:>         [01-Jul-14 5:34:35 PM] LIST

      STATUS:>               [01-Jul-14
      5:34:35 PM] Connecting FTP data socket… 67.205.91.17:58961…

                                      [01-Jul-14
      5:34:36 PM] 150 File status okay; about to open data connection

                                      [01-Jul-14
      5:34:36 PM] 226 Closing data connection

      STATUS:>               [01-Jul-14
      5:34:36 PM] Directory listing completed.

        

      What is  the meaning of this statement: " This site doesn’t support the ‘features’ command."?

    2. While working with our company’s FTP server it shows me log as below:

       

      STATUS:>               [01-Jul-14
      5:31:40 PM] Getting listing ""…

      STATUS:>               [01-Jul-14
      5:31:40 PM] Resolving host name http://ftp.xyz.in...

      STATUS:>               [01-Jul-14
      5:31:40 PM] Host name http://ftp.xyz.in resolved: ip = 216.185.52.30.

      STATUS:>               [01-Jul-14
      5:31:40 PM] Connecting to FTP server… http://ftp.xyz.in:21 (ip =
      216.185.52.30)…

      STATUS:>               [01-Jul-14
      5:31:41 PM] Socket connected. Waiting for welcome message…

                                      [01-Jul-14
      5:31:41 PM] 220———- Welcome to Pure-FTPd [privsep] [TLS] ———-

                                      220-You are user
      number 19 of 50 allowed.

                                      220-Local time
      is now 08:01. Server port: 21.

                                      220-This is a
      private system – No anonymous login

                                      220-IPv6
      connections are also welcome on this server.

                                      220 You will be
      disconnected after 15 minutes of inactivity.

      STATUS:>               [01-Jul-14
      5:31:41 PM] Connected. Authenticating…

      COMMAND:>         [01-Jul-14 5:31:41 PM] USER
      abc

                                      [01-Jul-14
      5:31:41 PM] 331 User abc OK. Password required

      COMMAND:>         [01-Jul-14 5:31:41 PM] PASS *****

                                      [01-Jul-14
      5:31:42 PM] 230 OK. Current restricted directory is /

      STATUS:>               [01-Jul-14
      5:31:42 PM] Login successful.

      COMMAND:>         [01-Jul-14 5:31:42 PM] PWD

                                      [01-Jul-14
      5:31:42 PM] 257 "/" is your current location

      STATUS:>               [01-Jul-14
      5:31:42 PM] Home directory: /

      COMMAND:>         [01-Jul-14 5:31:42 PM] FEAT

                                      [01-Jul-14
      5:31:42 PM] Informational Message Only:

                                      211-Extensions
      supported:

                                       EPRT

                                       IDLE

                                       MDTM

                                       SIZE

                                       MFMT

                                       REST STREAM

                                       MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;

                                       MLSD

                                       AUTH TLS

                                       PBSZ

                                       PROT

                                       TVFS

                                       ESTA

                                       PASV

                                       EPSV

                                       SPSV

                                       ESTP

                                      211 End.

      STATUS:>               [01-Jul-14
      5:31:42 PM] This site supports features.

      STATUS:>               [01-Jul-14
      5:31:42 PM] This site supports SIZE.

      STATUS:>               [01-Jul-14
      5:31:42 PM] This site can resume broken downloads.

      COMMAND:>         [01-Jul-14 5:31:42 PM] REST 0

                                      [01-Jul-14
      5:31:43 PM] 350 Restarting at 0

      COMMAND:>         [01-Jul-14 5:31:43 PM] PASV

                                      [01-Jul-14
      5:31:43 PM] 227 Entering Passive Mode (216,185,52,32,131,197)

      COMMAND:>         [01-Jul-14 5:31:43 PM] LIST

      STATUS:>               [01-Jul-14
      5:31:43 PM] Connecting FTP data socket… 216.185.52.32:33733…

                                      [01-Jul-14
      5:31:44 PM] 150 Accepted data connection

                                      [01-Jul-14
      5:31:44 PM] 226-Options: -a -l

                                      226 13 matches
      total

      STATUS:>               [01-Jul-14
      5:31:44 PM] Directory listing completed.

       

      here it shows me like: "This site supports features.

       

      So is there any settings/previlege to properietary ftp server that are not for the freeware ftp server? Or any thing else that i can test???

       

        

      1. The FTP server can have a separate permission setting for APPEND command.
        Maybe you do not have the right permissions on this server, to append data.

        Can you check the FTP server log, at the time, when you send the APPEND command?
        In this log, you shoul see a command “APPE” and this STATUS reply from the server.
        Check the cause of the error.