Does KFTPCLOSE correctly close FTP connection?

Hi,
It seems that calling AT+KFTPCLOSE in HL7692 doesn’t send QUIT command over FTP Connection, and the ftp-server keep connection “alive” until timeout.

AT+KFTPCFG=1,“x.y.z.q”,“vXXX”,“vXXXa”,“3340”,1
+KFTPCFG: 1
…recv or send something
AT+KFTPCLOSE=1,0
OK

Modem Information:
AT+GMM
HL7692
AT+GMR
RHL769x.2.26.180400.201802141030.x7120m_1

do you see the control channel of FTP (on port 3340 in your case)is closed after AT+KFTPCLOSE?

No it isn’t closed. I look at FTP server log and QUIT command is never received

does latest FW 2.27 have problem?

https://source.sierrawireless.com/resources/airprime/software/hl7692-firmware/#sthash.HepkauHF.dpbs

Sincerely I don’t know, my modules are now all soldered and I can’t easily upgrade

you don’t have USB port?

Can you also install wireshark in your FTP server to see if the TCP connection on port 3340 is closed after the command?

No :frowning:
Is there a changelog for 2.27?

Can you also install wireshark in your FTP server to see if the TCP connection on port 3340 is closed after the command?

Yes I can, tomorrow I will try

Thank you


Not only the connection is not closed sending QUIT command after AT+KFTPCLOSE, but
the modem continue sending NOOP command every 2 minutes for 10 minutes.

After 10 minutes from successful transfer the QUIT command arrives to the FTP server

When did you type at+kftpclose?

After 37.0 second from the session beginning (just after the transfer complete)

how about using the following? Is it same behavior?

AT+KFTPCLOSE=1,1
AT+ KFTPCFGDEL=1

If + KFTPCFGDEL is successfully, according to the AT command user guide, the connection should be closed.

Just tried, nothing changed. The connection remains open even after AT+ KFTPCFGDEL=1

how about AT+KCNXDOWN=1,1

I can see the TCP connection is closed after +KFTPCLOSE.

AT+KCNXCFG=1,“GPRS”,“internet”
OK
AT+KFTPCFG=1,“xxx.xxx.xxx.xxx”,“username”,“password”,21,1
+KFTPCFG: 1

OK

+KCNX_IND: 1,4,1

+KCNX_IND: 1,1,0

+KFTP_IND: 1,1
AT+KFTPRCV=1,"",“2222.txt”
CONNECT
2222–EOF–Pattern–
OK

+KFTP_IND: 1,2,4
AT+KFTPCLOSE=1
OK

+KCNX_IND: 1,5,30

+KCNX_IND: 1,0,0
ati3
RHL769x.2.24.173100.201709051100.x7120m_1

OK
ati9
RHL769x.2.24.173100.201709051100.x7120m_1
HL7692
HL769x.2.24
x7120m
FUSED
2017-09-05 11:32:03
r10943

OK