Specifications
FTPATCOMMANDS
249 HSPA+ATCommandsReferenceGuide
Notes
IssueFTPTYPE=0beforesuccessiveFTPGET(orFTPG ETPKTcommand)tosetbinaryfiletransfertype.
Setting<restartposition>haseffectonsuccessiveFTPdownload.
AftersuccessivesuccessfullyinitiatedFTPGET(orFTPGETPKT)command<restartposition>isautomatically
reset.
Valuesetfor<restartposition>haseffectonnextdatatransfer(dataportopenedbyFTPGETorFTPGETPKT).
Then<restartposition>valueisautomaticallyassignedto0fornextdownload.
ReceiveDatainCommandMode#FTPRECV
Executecommandpermitstheusertotransferatmost<blocksize>bytesofremotefile,providedthatretrieving
fromtheFTPserverisstartedwithaprevious#FTPGETPKTcommand,ontotheserialport.
ThisnumberislimitedtothecurrentnumberofbytesoftheremotefiletransferredfromtheFTPserver.
Readcomma
ndreportsthenumberofbytescurrentlyreceivedfromFTPserver,intheformat:
#FTPRECV:<available>
Testcommandreturnstherangeofsupportedvaluesfor<blocksize>parameter.
Syntax
Command Commandtype
AT#FTPRECV=<blocksize> Execute
AT#FTPRECV? Read
AT#FTPRECV=? Test
ParametersandValues
<blocksize> Maximumnumberofbytestoread.
1‐3000
Notes
YoumusthavepreviouslyopenedFTPdataportandstarteddownloadandbufferingofremotefilethrough
#FTPGETPKTcommand.
Issuing#FTPRECVwhenthereisnoFTPdataportopenedraisesanerror.
Dataportstaysopenifsocketistemporarywaitingtoreceive data(FTPRECVreturns0andFTPGETPKTgivesa
EOF0indication).