FTP error

Wireless communications in Waspmote, topologies, node types...
Post Reply
rekhamanoj
Posts: 57
Joined: Tue May 26, 2015 1:03 pm

FTP error

Post by rekhamanoj » Mon Jun 11, 2018 11:56 am

Hiii

When I try to upload file using FTP it is showing the error -23. But the file is existing in the SD card. How can we solve this issue.

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: FTP error

Post by libelium-dev » Tue Jun 12, 2018 8:24 am

Hi,

What module do you have?

What code and API are you using? Please copy here the complete output through the serial monitor.

Also please try to format the SD card. You can use that example code
http://www.libelium.com/development/was ... format-sd/

Regards

rekhamanoj
Posts: 57
Joined: Tue May 26, 2015 1:03 pm

Re: FTP error

Post by rekhamanoj » Fri Jun 22, 2018 11:44 am

I am using SIM900 module. This is the api I am using

answer = GPRS_Pro.uploadFile(filename, "/upload/amma", "anonymous", "ammaamma", "90.130.70.73", "21", 1);
I am trying to access a public FTP server. Now I am getting error codes -19 and -23 intermittently for different trials.

Output:

J#
**************************
[GPRS] APN: apn
[GPRS] LOGIN: login
[GPRS] PASSWORD: password
file NOT created
**************************
USB port started...
GPRS_Pro module ready...
GPRS_Pro module connected to the network...

Uploading the file 1...
Upload failed1. Error code: -19
Sleeping...
USB port started...
GPRS_Pro module ready...
GPRS_Pro module connected to the network...
100.80.165.222
Uploading the file 1...
Upload failed1. Error code: -19
Sleeping...
USB port started...
GPRS_Pro module ready...
GPRS_Pro module connected to the network...
100.70.17.93
Uploading the file 1...
Upload failed1. Error code: -23
Sleeping...
USB port started...
GPRS_Pro module ready...
GPRS_Pro module connected to the network...
100.68.9.103
Uploading the file 1...
Upload failed1. Error code: -24
Sleeping...

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: FTP error

Post by libelium-dev » Mon Jun 25, 2018 8:30 am

Hi,

Please try to set the APN setting of your sim card.

Also the character / is necessary before the name of the file, so try to include that.

Regards

rekhamanoj
Posts: 57
Joined: Tue May 26, 2015 1:03 pm

Re: FTP error

Post by rekhamanoj » Fri Jul 12, 2019 11:43 am

Hi

I have executed the FTP-upload code, where I tried to upload the file from SD card to FTP server. Even though the file has been successfully uploaded, the line of code saying the "UPLOAD OK" is not getting executed and "UPLOAD ERROR" is being shown in the Serial monitor. Also, most of the time, the SD.ls() command in the same code is not getting executed. Please help to rectify this

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: FTP error

Post by libelium-dev » Mon Jul 15, 2019 8:17 am

Hi,

What API are you using? Could you please copy here the output through the serial monitor with debug mode 1 enabled in WaspGPRS_Pro_core.h?

Code: Select all

#define GPRS_debug_mode 1
In addition, please try to format the SD card using the following example code
http://www.libelium.com/development/was ... format-sd/

Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest