FTP error ERRLOG


#1

First off all, hello Everyone

I’m using example ftp2ftp and i get next traces:

at+wopen=1
OK
[GPRS]: initialized.
[GSM]: initialized.
[UART1]: initialized.
[UART2]: initialized.
[]: initialized.
+WIND: 3
+WIND: 1
+WIND: 4
+WIND: 7
[GPRS]: open: -> DISCONNECTED
[GPRS]: start: -> CONNECTING
[GPRS]: GPRS EVENT SETUP OK (cid=1): GPRS activate
[GPRS]: GPRS EVENT: 27 (cid=1)
[GPRS]: GPRS EVENT ACTIVATE OK (cid=1): FCM open
[GPRS]: FCM subscribe: 0
[GPRS]: FCM EVENT FLOW OPENNED: -> CONNECTED
Opening FTP connections...
ERRLOG ftp.c:424: returned WIP_CERR_NOT_SUPPORTED
ERRLOG ftp.c:140: Options error
Can't open src FTP connection
OK

modem is Q24 plus

How can I fix this?

Strange when i Use WipSoft plugin I’m able to conect on the same ftp server with

at+wipcreate=2,1,"IP",port

FileZilla also connects ok.

Thanks in advance


#2

https://forum.sierrawireless.com/t/send-data-to-database-in-server-with-wip-at-commads/4346/11


#3

If this is problem of that kind, why am i able to get ftp connectoin from wipsoft plugin, and btw i do not have distributor in my country


#4

Help please, I’m desperate

When I use

cx = wip_FTPCreateOpts( SERVER, evh_cx, NULL,
		  WIP_COPT_USER, DST_USER,
		  WIP_COPT_PASSWORD, DST_PASSWORD,
		  WIP_COPT_PORT, 121,
                  WIP_COPT_PASSIVE,  DST_ISPASSIVE, 
                  WIP_COPT_END);

I get problem. When I try to connect to anonumus i manage that. So problem is with OPTS user, pass or port


#5

Hiya,

Is this a typo?

Active FTP uses TCP port 21 for commands and TCP port 20 for data
Passive FTP (which it looks like you are trying here) uses TCP port 21 to establish the link with the server, then some random port for the session.

Have a look at : http://slacksite.com/other/ftp.html (among others).

ciao, Dave


#6

David,

It’s not a typo, but shuldn’t

WIP_COPT_PORT, 121,

set the port for establishing connection to the port on whitch my server is listening.

I’ll try to manage with teammates to server listen on 21 then I’ll post back to you what happened.


#7

NOw, my teammates changed port to 21, and i can connect. But, this is only test server.
Now Question is there a way to set port for ftp connection? How?

Thanks


#8

Please, if anyone knows how to set port with WIP_COPT_PORT please help.
Or where to search?

Thanks


#9

Yes it was typo. :blush: .Should be WIP_COPT_PEER_PORT