Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[Sim800]download file by FTP

Status
Not open for further replies.

dinhthi86

Newbie level 2
Joined
Aug 11, 2017
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
18
Hi,
I am using AT command from FTP part of SIMCOM Sim800 to download a file.
These are the log I got from terminal:

send: AT+SAPBR=3,1,"Contype","GPRS"

OK
send: AT+SAPBR=3,1,"APN","m-wap"

OK
send: AT+SAPBR=3,1,"USER","***"

OK
send: AT+SAPBR=3,1,"PWD","***"

OK
send: AT+SAPBR=1,1

OK
send: AT+FTPCID=1

OK

send: AT+FTPSERV="***"

OK
send: AT+FTPPORT="21"

OK
send: AT+FTPUN="***"

OK
send: AT+FTPPW="***"

OK
send: AT+FTPGETNAME="test01.txt"

OK
send: AT+FTPGETPATH="/"

OK
send: AT+FTPGETTOFS=0,"test01.txt"

OK
send: AT+FTPGETTOFS?

+FTPGETTOFS: 1,0,0

OK

+FTPGETTOFS: 0,0

----------------------------------------------------------------------
As the last respond, it said "During the process" (1,0,0) then after few seconds it is "Not in the process" (0,0).
The file size is 15bytes.
Could someone please help me to solve this.
Thank you all!
 

On the other hand, when I replaced the command AT+FTPGETTOFS by AT+FTPGET, it worked well:
These are the commands I tried:

send: AT+FTPGET=1

+FTPGET: 1,1

OK
send: AT+FTPGET=2,15 //download 15bytes per package

+FTPGET: 2

....

Please note that:

FTPGETTOFS: download and store file in File system of Sim800
FTPGET: get and print out each package.

Thank you!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top