Hello,
In a current developpemnt, I would like to write data continuously to an FTP server, split into 2048 bytes per files.I’m able to connect to my server, and I wait for +KFTP_IND: 1,1,0 before trying to open the file.
My problem is I didn’t find a way to know when all datas has been sent, and it is possible to close the file. It seems datas are buffered to HL8548 before being written to the server, and when I write my EOF pattern (set by at+kpattern), the file is closed even if there is still some datas inside the buffer. When I open the next file, the remaining datas are sent to the new file, instead of the old one.
I also don’t receive +KFTP_IND URC after closing the file (which make sense, because transmit is not over).
Here is the command I do :
at+kftpsnd=1,"","file0000.txt",0,0
--Wait for DCD to go down--
....datas....
--Closing file using EOF pattern--
--Wait for DCD to go up--
I wanted to use +KFSFILE to write a file to the flash before sending it or *PSGCNT to track the number of byte sent trough GPRS connection, but both are only available to HL6528. What did I miss ?