Discussion in "Embedded GSM Development" started by    Mejdi    Feb 19, 2009.
Thu Feb 19 2009, 09:24 pm
#1

I need a free FTP server which works in both active and passive mode

can any one helps me
Thu Feb 19 2009, 11:38 pm
#2
It may be easier to setup a free web site.
Choose one that allows you to update your files using FTP.

You can test your modem using the free website server.



Fri Feb 20 2009, 08:44 pm
#3
i can't test my SIM300C modem using the free website server, because this modem do not work in passive mode (comman PASV), the modem can etablish only one TCP connection (or in passive mode you have two connections as SREVER (FTP is passive))

at+cstt
OK
at+ciicr
OK
at+cifsr
10.228.249.238
at+clport="tcp","2020"
OK
at+cipserver
SERVER OK

OK
at+clport="tcp","2021"
OK
at+cipstart="tcp","207.253.193.227","21"
OK
220-ftp.cbti.net NcFTPd Server (licensed copy) ready.
220-
220-.: CyberTech Media inc. :.
220-
220-Bienvenue sur le service FTP du serveur Unix (unix.cbti.net).
220-
220-Centre de Gestion du Reseau : [email protected]
220

CONNECT OK
at+cipsend
> user mejdi

SEND OK
331 User mejd okay, need password.
at+cipsend
> pass ******

SEND OK
230-You are user #5 of 50 simultaneous users allowed.
230-
230 Restricted user logged in.
at+cipsend
> type I

SEND OK
200 Type okay.
at+cipsend
> port 10,228,249,238,7,228
SEND OK

200 PORT command successful.

at+cipsend
> APPE file.txt
SEND OK

and the server should also answer
150 connecting to port 2020 (but it doesn't )

after i write

at+cipccon=2
OK
at+cipsend
ERROR

can you explain for me if the error is from the srver or the modem
Sat Feb 21 2009, 04:34 am
#4


i can't test my SIM300C modem using the free website server, because this modem do not work in passive mode (comman PASV), the modem can etablish only one TCP connection (or in passive mode you have two connections as SREVER (FTP is passive))

Mejdi



Frankly this kind of thing makes me dizzy.
It is something you have to do hands on, so what I say be be totally wrong.

That said, it seems to me that you need to work in passive mode because most mobiles
are behind their networks fire wall and can't accept an incoming TCP\IP connection.

In this case you issue a PASV command rather than a PORT command.

Active and passive modes both use two channels,
the difference, is in who initiates the second one.


Sat Feb 21 2009, 06:27 pm
#5
1-
but why the server don't want me to connect in data channel

at+cipsend
> APPE file.txt
SEND OK

and the server should also answer
150 connecting to port 2020 (but it doesn't )

2-

can i use a http server in stead of an ftp server and how ??
Wed Feb 25 2009, 12:43 am
#6
GSM modems connect to the provider's private network.
That network, like any private network connects to the internet through a router.
That router is set to allow connection out to the net
but not connection from the net to you.
It doesn't allow port forwarding, so the ftp server can't reach you.

>can i use a http server instead of an ftp server and how ??

You can in theory.. HTTP has a "PUT" command, but it may not always
be implemented.

Small amounts of data can be sent to php or Perl scripts.
How much data do you need to send ?

Have you tried connecting your PC to the internet using your modem, this
should give you a good idea of what is possible.




[ Edited Wed Feb 25 2009, 01:19 am ]
Wed Feb 25 2009, 07:58 pm
#7
Hi ExperimenterUK,
thanks for your answer

>GSM modems connect to the provider's private network.
That network, like any private network connects to the internet through a router.
That router is set to allow connection out to the net
but not connection from the net to you.
It doesn't allow port forwarding, so the ftp server can't reach you.

i have already done the port forwarding, but it doesn't work.

>How much data do you need to send ?

i have to send very small amounts of data
Thu Feb 26 2009, 02:38 am
#8


i have already done the port forwarding, but it doesn't work.

Mejdi



That's because I'm talking about the router on the
GSM service providers network not yours.

Of course you will never get access to that.

For small amounts of data, HTML may well be the way to go.
In HTML you can add a text string to the URL.. this string can be read in as data
by a simple script and the script can save the data to a file

You can see an example in the address bar at the top of your browser



http://www.8051projects.net/plugins/forum/forum_post.php?18515.last

http://www.8051projects.net/plugins/forum/ . . . is the main address
forum_viewtopic.php . . . . . a script to handle inquiries
? . . . . . . . . . . . . . . . . . a separator meaning "data follows"
18515.last . . . . . . . . . the data

Start learning php






[ Edited Fri Feb 27 2009, 01:00 am ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm