We are using GL868-DUAL module in our one of the project. Where we have required to download .bin file from FTP server using module FTP stack.
Issue :- After opening FTP socket we are sending “AT#FTPRECV=1024” command to server to receive FTP data in command mode. Some time we are able to download complete file from server, but some time module responding “ERROR”.
We are getting “ERROR” 3/10.
Please find attached log FYR.
Please help to guide us.
Thanks & Rgds,
Diwakar Singh
Please set AT+CMEE=2 and do the log again, include also AT+CGMR. Use AT#FTPMSG to see the last server answer.
Dear Sir,
We are facing another issue with GL868-DUAL module during get FTP data in command mode.
AT#FTPGETPKT=”EMSAVE_1.bin”,0
+CME ERROR: Bad or no response from server<CR><LF>
It is a connection issue probably. What is AT#FTPMSG saying? Test with other server.
Dear Sir,
PFA FTP file log.
During file downloading, file downloading pointer shifting to end off file after few attempts. Please refer attached log for your reference.
Let me know, if I am doing any this wrong.
Thanks & Regards, Diwakar
You don’t have to send the AT#FTPGETPKT every time, it is enough if you send it once and read the data in a sequence, with eg. AT#FTPRECV=1024, until you reach the end of file.
You can check with AT#FTPGETPKT? if you have received the end of file or if the data transfer is still ongoing. You can also use the AT#FTPRECV? to check how any bytes you have in the buffer and read them with AT#FTPRECV=x command.
Once the end of file is reached, the server should close the FTP data connection.
Sir,
I already shared log file with you, after few attempts (1024), it showing that all data received from server. after that it showing 0 data.
This issue is coming with only Telit module, other make module is working fine.
Please help to resolve soon.
Regards,
Diwakar
Please find attached log along with AT#FTPRECV? command.
In your log, you have received 10720 bytes. Since the reported file size was: #FTPFSIZE: 94756, I suppose that the end of file wasn’t received. You can use AT#FTPGETPKT? command to check if the end of file was received or not.
Again, based on your log, it seems that the data flow was blocked. I suppose by a firewall on the path. To check this theory, you can make a test with a SIM card from another operator. Otherwise, we can provide you a tool to collect a trace from the module. From the trace we should be able to determine the root cause of this issue.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Dear Sir,
We are using GL868-DUAL module in our one of the project. Where we have required to download .bin file from FTP server using module FTP stack.
Issue :- After opening FTP socket we are sending “AT#FTPRECV=1024” command to server to receive FTP data in command mode. Some time we are able to download complete file from server, but some time module responding “ERROR”.
We are getting “ERROR” 3/10.
Please find attached log FYR.
Please help to guide us.
Thanks & Rgds,
Diwakar Singh
Please set AT+CMEE=2 and do the log again, include also AT+CGMR. Use AT#FTPMSG to see the last server answer.
Dear Sir,
We are facing another issue with GL868-DUAL module during get FTP data in command mode.
AT#FTPGETPKT=”EMSAVE_1.bin”,0
+CME ERROR: Bad or no response from server<CR><LF>
Please find below log.
13-Oct-15 13:01:17.312 [TX] – AT#FTPOPEN=”120.63.157.31:21″,”aceFTP”,”acevin123456″<CR>
13-Oct-15 13:01:18.981 [RX] – <CR><LF>
OK<CR><LF>
13-Oct-15 13:01:19.716 [TX] – AT#FTPTYPE=0<CR>
13-Oct-15 13:01:20.001 [RX] – <CR><LF>
OK<CR><LF>
13-Oct-15 13:01:21.161 [TX] – AT#FTPFSIZE=”EMSAVE_1.bin”<CR>
13-Oct-15 13:01:21.460 [RX] – <CR><LF>
#FTPFSIZE: 94756<CR><LF>
<CR><LF>
OK<CR><LF>
13-Oct-15 13:01:23.434 [TX] – AT#FTPGETPKT=”EMSAVE_1.bin”,0<CR>
13-Oct-15 13:01:34.372 [RX] – <CR><LF>
+CME ERROR: Bad or no response from server<CR><LF>
13-Oct-15 13:01:36.402 [TX] – AT#FTPGETPKT=”EMSAVE_1.bin”,0<CR>
13-Oct-15 13:01:44.598 [RX] – <CR><LF>
+CME ERROR: Bad or no response from server<CR><LF>
13-Oct-15 13:03:20.766 [TX] – AT#FTPGETPKT=”EMSAVE_1.bin”,0<CR>
13-Oct-15 13:03:21.940 [RX] – <CR><LF>
OK<CR><LF>
Regards,
Diwakar Singh
It is a connection issue probably. What is AT#FTPMSG saying? Test with other server.
Dear Sir,
PFA FTP file log.
During file downloading, file downloading pointer shifting to end off file after few attempts. Please refer attached log for your reference.
Let me know, if I am doing any this wrong.
Thanks & Regards,
Diwakar
You don’t have to send the AT#FTPGETPKT every time, it is enough if you send it once and read the data in a sequence, with eg. AT#FTPRECV=1024, until you reach the end of file.
You can check with AT#FTPGETPKT? if you have received the end of file or if the data transfer is still ongoing.
You can also use the AT#FTPRECV? to check how any bytes you have in the buffer and read them with AT#FTPRECV=x command.
Once the end of file is reached, the server should close the FTP data connection.
Sir,
I already shared log file with you, after few attempts (1024), it showing that all data received from server. after that it showing 0 data.
This issue is coming with only Telit module, other make module is working fine.
Please help to resolve soon.
Regards,
Diwakar
Please find attached log along with AT#FTPRECV? command.
In your log, you have received 10720 bytes.
Since the reported file size was: #FTPFSIZE: 94756, I suppose that the end of file wasn’t received.
You can use AT#FTPGETPKT? command to check if the end of file was received or not.
Again, based on your log, it seems that the data flow was blocked. I suppose by a firewall on the path.
To check this theory, you can make a test with a SIM card from another operator.
Otherwise, we can provide you a tool to collect a trace from the module.
From the trace we should be able to determine the root cause of this issue.
Dear Sir,
Please find below command responce,
28-Oct-15 17:58:04.924 [TX] – AT#FTPGETPKT?<CR>
28-Oct-15 17:58:04.944 [RX] – <CR><LF>
#FTPGETPKT: EMSAVE_1.bin,1,0<CR><LF>
<CR><LF>
OK<CR><LF>
Please let me know, how to take module log. I already have RTD software.
Thanks,
Diwakar
We will continue this investigation over e-mail.
I will send you an e-mail in which I will explain you how to collect a trace with RTD.
Dear Sir,
I have sent log over E-mail.
Please let me know your feedback.
Thanks,
Diwakar Singh