DNS Problem with FTP in Sim900

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

hi.
I wrote a code for send data by ftp and it worked fine but couple of days this is not working:(
and get me DNS error any one knows why?

this is my code:

SendCommandToGPRS("AT+FTPCID=1\r\n");
	if(GetRespGPRS("AT+FTPCID=1","OK",1))
	{
		SendCommandToGPRS("AT+FTPTYPE=\"A\"\r\n");
		if(GetRespGPRS("AT+FTPTYPE","OK",1))
		{
			SendCommandToGPRS("AT+FTPSERV=\"ftp://xxx.xxx.xxx.xxx\"\r\n");			
			if(GetRespGPRS("AT+FTPSERV","OK",1))
			{
				SendCommandToGPRS("AT+FTPUN=\"administrator\"\r\n");
				if(GetRespGPRS("AT+FTPUN","OK",1))
				{
					SendCommandToGPRS("AT+FTPPW=\"12345\"\r\n");
					if(GetRespGPRS("AT+FTPPW","OK",1))
					{
						SendCommandToGPRS("AT+FTPPUTNAME=\"");
							SendCommandToGPRS(FTPFileName);
							SendCommandToGPRS(".txt\"\r\n");
							if(GetRespGPRS("AT+FTPPUTNAME","OK",1))
							{
								SendCommandToGPRS("AT+FTPPUTPATH=\"/FTP/\"\r\n");
								if(GetRespGPRS("AT+FTPPUTPATH","OK",1))
								{
									SendCommandToGPRS("AT+FTPPUT=1\r\n");
									//here I got error I expect receive +FTPPUT:1,1,1360
									//But I got this: 	+FTPPUT:1,62 and according the data sheet
									// this error is about dns!
								}
							}
					}
				}
			}	
		}
	}			
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Where is the AVR question in this? Surely it's better targetted at a SIM300/900 support forum?

Moderator

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

clawson wrote:
Where is the AVR question in this? Surely it's better targetted at a SIM300/900 support forum?

Moderator

yes you are right but I did not find sim300/900 forum.
I post that here because I am trying to drive sim900 with avr :D