Specifications

FTPATCOMMANDS

249 ATCommandsforHSPAH5Modems
Notes
IssueFTPTYPE=0beforesuccessiveFTPGET(orFTPGETPKTcommand)tosetbinaryfiletransfertype.
Setting<restartposition>haseffectonsuccessiveFTPdownload.
AftersuccessivesuccessfullyinitiatedFTPGET(orFTPGETPKT)command<restartposition>isautomatically
reset.
Valuesetfor<restartposition>haseffectonnextdatatransfer(dataportopenedbyFTPGETorFTPGETPKT).
Then<restartposition>valueisautomaticallyassignedto0fornextdownload.
ReceiveDatainCommandMode#FTPRECV
Executecommandpermitstheusertotransfer atmost<blocksiz e> bytesofremotefile,providedthatretrieving
fromtheFTPserverisstartedwithaprevious#FTPGETPKTcommand,ontotheserialport.
ThisnumberislimitedtothecurrentnumberofbytesoftheremotefiletransferredfromtheFTPserver.
ReadcommandreportsthenumberofbytescurrentlyreceivedfromFTPserver,intheformat:
#FTPRECV:<available>
Testcommandreturnstherangeofsupportedvaluesfor<blocksize>parameter.
Syntax
Command Commandtype
AT#FTPRECV=<blocksize> Execute
AT#FTPRECV? Read
AT#FTPRECV=? Test
ParametersandValues
<blocksize> Maximumnumberofbytestoread.
13000
Notes
YoumusthavepreviouslyopenedFTPdataportandstarteddownloadandbufferingofremotefilethrough
#FTPGETPKTcommand.
Issuing#FTPRECVwhenthereisnoFTPdataportopenedraisesanerror.
Dataportstaysopenifsocketistemporarywaitingtoreceivedata(FTPRECVreturns0andFTPGETPKTgivesa
EOF0indication).