I am using FTP transfer (GE865-QUAD and GL865-DUAL both with 10.00.xx5 FW), controlled by Python script. FTP is working well, but I need to improve some things.
In all my applications, FTP transfer as well as all GPRS-related communications are using MDM2 command parser. MDM command parser is used as a general purpose – to check socket status, for voice call, SMS, network status, etc.
BTW, when the device is in GPRS connection and is sending data to UDP server and someone is calling to device – after opening the line, GSM module gives information that it is not registered to the network indepenedently that I can see that the UDP-packets are sent and received and bidirectional voice call is held. Same is after sending SMS.
1. After AT#FTPOPEN=… (in active mode), AT#FTPTYPE=1 (ASCII), and AT#FTPCWD=… (to upload file to related folder on FTP sever), AT#FTPPUT=filename, and receiving CONNECT, GSM starts sending the file row-by row using MDM2.send(row).
What answer (URC) to MDM2 (or probably to MDM) will be received if the connection is broken during file sending? NO CARRIER or something else. I am checking res value (res = MDM2.send(row)), and if res==1 command is succesful.
2. After the end of file transfer (all data uploaded, delay of 3 sec, ‘+++’, another delay of 3 sec and after receiving od NO CARRIER), I want to check file size on the FTP server.
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
Hi All,
I am using FTP transfer (GE865-QUAD and GL865-DUAL both with 10.00.xx5 FW), controlled by Python script. FTP is working well, but I need to improve some things.
In all my applications, FTP transfer as well as all GPRS-related communications are using MDM2 command parser. MDM command parser is used as a general purpose – to check socket status, for voice call, SMS, network status, etc.
BTW, when the device is in GPRS connection and is sending data to UDP server and someone is calling to device – after opening the line, GSM module gives information that it is not registered to the network indepenedently that I can see that the UDP-packets are sent and received and bidirectional voice call is held. Same is after sending SMS.
Now, about http://FTP.
1. After AT#FTPOPEN=… (in active mode), AT#FTPTYPE=1 (ASCII), and AT#FTPCWD=… (to upload file to related folder on FTP sever), AT#FTPPUT=filename, and receiving CONNECT, GSM starts sending the file row-by row using MDM2.send(row).
What answer (URC) to MDM2 (or probably to MDM) will be received if the connection is broken during file sending? NO CARRIER or something else. I am checking res value (res = MDM2.send(row)), and if res==1 command is succesful.
2. After the end of file transfer (all data uploaded, delay of 3 sec, ‘+++’, another delay of 3 sec and after receiving od NO CARRIER), I want to check file size on the FTP server.
According to the AT-command reference guide:
AT#FTPFSIZE=<span lang=