data sending from gsm device to remote server

Status
Not open for further replies.

morshed005

Newbie level 4
Joined
Feb 14, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,324
i want to send strings to a remote server from my nokia AT Command enabled phone. i have been able to activate the phone with gprs through AT Command. and i get a specific ip address each time i activate session. the ip address is dynamic. please help me with specific at command about how to send data to remote server
 

I think you have done upto below

unsigned char GSM_GPRSInit(void)
{
GSM_ExecuteATCommand("ATE0");
ret = GSM_ReadResponse(1);
GSM_ExecuteATCommand("AT+CGATT=1");
ret = GSM_ReadResponse(1);
GSM_ExecuteATCommand("AT+CGDCONT=1,\"IP\",\"internet\"");
ret = GSM_ReadResponse(1);
GSM_ExecuteATCommand("AT+CSTT=\"internet\",\"\",\"\"");
ret = GSM_ReadResponse(1);
GSM_ExecuteATCommand("AT+CIICR");
ret = GSM_ReadResponse(5);
GSM_ExecuteATCommand("AT+CIFSR");
ret = GSM_ReadResponse(1);
GSM_ExecuteATCommand("AT+CIPSTATUS");
ret = GSM_ReadResponse(1);
return 1;
}

To send string you may use UDP or URL's query string method like below
// Upload Data
GSM_ExecuteATCommand("AT+CIPSEND");
ret = GSM_ReadResponse(5);
Usart_WriteText("GET http://www.aruljothitrust.com/default.aspx?emid=dgvv&emdata=");
for(i=0;i<recBytes;i++) Usart_Write(recBuff);
Usart_WriteText(" HTTP/1.1");
Usart_Write(13);
Usart_Write(10);
Usart_WriteText("Host: www.aruljothitrust.com");
Usart_Write(13);
Usart_Write(10);
Usart_Write(13);
Usart_Write(10);
Usart_Write(26); // CTRL+Z

Regards
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…