how can i upload and download From ftp by sim900 module?

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi.
how can i upload and download From ftp by sim900 module?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Google says:

http://www.edaboard.com/thread19...

Obviously follow the post that starts:

Quote:
I found the solution. Following is the correct method:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i saw this link but this didn`t work for me!!!.
i would like to use at commands for ftp
like this:
AT+FTPGET
AT+FTPPUT
but i haven`t any idea about how i can use this.
if you know please guide me step by step thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

w0o0ow thanks this pdf is fantastic.
thank you.

but i have a new problem!

i want to use http get method.
i wrote this function but it`s only work for first url after that get me same respond!!!

this is my function:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i don`t know why i can`t post my code here!!!

it give me this error!!!

Bad Request

Your browser sent a request that this server could not understand.
Apache Server at www.avrfreaks.net Port 80

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
char* SendDataToGPRS()
{
	DoCommand("AT+SAPBR=3,1,\"APN\",\"Access_Point"\r\n");
	_delay_ms(50);
	DoCommand("AT+SAPBR=1,1\r\n");
	_delay_ms(50);
	DoCommand("AT+SAPBR=2,1\r\n");
	_delay_ms(50);
        DoCommand("AT+HTTPINIT\r\n");
	_delay_ms(50);
	DoCommand("AT+HTTPPARA=\"URL\",\"www.google.com\"\r\n");
	_delay_ms(50);
	DoCommand("AT+HTTPACTION=0\r\n");

	if(GetRespGPRS("AT+HTTPACTION=0","+HTTPACTION"))
	{
		DoCommand("AT+HTTPREAD\r\n");
		ShowRespond();
	}
}

please guide me.
thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
i don`t know why i can`t post my code here!!!
Because the code contains percent signs. Replace them with %

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i didn`t know this and i replace them with new other code!!!

thanks for guiding me.:)