FTP流程

ftp获取 AT指令流程

^CINIT: 1, 0, 0

^CINIT: 2, 32, 41891

^CINIT: 8, 2048, 1

^CINIT: 16, 0, 3276850

^CINIT: 32, 0, 0

+CREG: 0

+CTZV:19/1/3,10:10:1,23

+CIEV: service,  1
+CIEV: roam, 0

+CREG: 1


AT+CGDCONT=1,"IP","cmnet"


AT+CGDCONT=1,"IP","cmnet"

OK


AT+CGACT=1


AT+CGACT=1

OK


AT+CGACT?


AT+CGACT?

+CGACT: 1, 1

OK

执行:19

AT^FTPOPEN="119.3.39.78:21","administrator","Px12345678!",1,180,1


AT^FTPOPEN="119.3.39.78:21","administrator","Px12345678!",1,180,1

OK


执行:17

AT^FTPGETSET="/123.txt",0,6


AT^FTPGETSET="/123.txt",0,6

OK


执行:18

AT^FTPGET=1


AT^FTPGET=1

OK

^FTPGET:1,1
^FTPGET:2,6
houjie^FTPGET:2,0


执行:20

AT^FTPCLOSE
 

AT^FTPCLOSE

OK

^URCFTP:0

ftp上传AT指令流程


^CINIT: 1, 0, 0

^CINIT: 2, 32, 41891

^CINIT: 8, 2048, 1

^CINIT: 16, 0, 3276850

^CINIT: 32, 0, 0

+CREG: 0

+CTZV:19/1/3,10:10:1,23

+CIEV: service,  1
+CIEV: roam, 0

+CREG: 1


AT+CGDCONT=1,"IP","cmnet"


AT+CGDCONT=1,"IP","cmnet"

OK


AT+CGACT=1


AT+CGACT=1

OK


AT+CGACT?


AT+CGACT?

+CGACT: 1, 1

OK


执行:19

AT^FTPOPEN="119.3.39.78:21","administrator","Px12345678!",1,180,1


AT^FTPOPEN="119.3.39.78:21","administrator","Px12345678!",1,180,1

OK


执行:17

AT^FTPPUTSET="/999.txt"


AT^FTPPUTSET="/999.txt"

OK


执行:18

AT^FTPPUT=1


AT^FTPPUT=1

OK

ERROR


执行:18

AT^FTPPUT=2,10


AT^FTPPUT=2,10


执行:18

1234567899

OK


执行:20

AT^FTPCLOSE
 

AT^FTPCLOSE

OK

^URCFTP:0

你可能感兴趣的:(FTP流程)