botletics / SIM7000-LTE-Shield

Botletics SIM7000 LTE CAT-M1/NB-IoT Shield for Arduino
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
477 stars 215 forks source link

FTP doesn't work #168

Open benjamin0906 opened 4 years ago

benjamin0906 commented 4 years ago

Hi, I have to set up a FTP connection with a SIM7000 modul, but unfortunatelly I cannot do it and I don't know what is the problem. I attached the log of the GSM commands, as you can see I always got a error 66 after trying to connect to the server. Would you have any idea what i do wrong? Thanks!

The 90.130.70.73 IP address is the ftp://speedtest.tele2.net/ test server. ftp log.txt

Humancell commented 4 years ago

There are a couple of good references:

https://m2msupport.net/m2msupport/tutorial-for-simcom-m2m-modules/#Ftp

https://m2msupport.net/m2msupport/atftpget-set-download-file/

On the second one I found: "66 operation not allow"

Have you tried to do this same get with an FTP client application and it works?

benjamin0906 commented 4 years ago

Unfortunately I can't see any new information on the sites you linked in. Yes I've tried to reach the server with various FTP clients and all of them worked.

I made a little mistake: I did not wait for the +FTPGET: answer and sent a new FTPGET=1 command to the module before that and this coused the "66 opertion not allow" error. So the real error code is the "63 Connect error". But I still don't know what is the promblem.

Humancell commented 4 years ago

You could always download and test with this tool: https://m2msupport.net/m2msupport/download-at-command-tester-for-simcom-modules/

It is free for 7 days, and very much worth buying after that. It has the FTP command, and you can see the exact command it issues.

benjamin0906 commented 4 years ago

Thank you! I found out what caused the problem. I changed the sim card and it works now. The previous one was a roaming SIM card.

pcbtborges commented 4 years ago

Hi, I tried to use FTP but compilation stops at:

Line 92: Adafruit_FONA_LTE fona = Adafruit_FONA_LTE();

'Adafruit_FONA_LTE' does not name a type

Thanks in advance Paulo

botletics commented 4 years ago

Looks like you need to follow these steps to get the proper library installed.

danielehrhardt commented 3 years ago

How large you the Files be with the FTP Protocol?