CREATE ON WEB SERVER USING ARDUINO UNO AND GSM SIM900

Dear friends,
i am trying to create my own web server using arduino uno and GSM sim900. i am trying to see my data on hercules tcp client but i don't see any kind of data on tcp server. i defined my ip address as well as port number in program but i don't receive any kind of data. so please help me as soon as possible. i attached my program.

serial_sms_web1.ino (1.13 KB)

//int button=3;
int val;
int tempPin = 1;

void setup() 
{
  pinMode(3, INPUT);
  Serial.begin(9600);
  Serial.print("\r");
  delay(5000);
  Serial.print("AT\r");
  delay(5000);
}
void loop()
{
   val = analogRead(tempPin);
   float mv = ( val/1024.0)*5000; 
   float cel = mv/10;
   float farh = (cel*9)/5+32;

   Serial.print("AT+CGATT=1\r");
     delay(2000);
   Serial.print("AT+CIPSHUT\r");
      delay(2000);
   Serial.print("AT+CIPSTATUS\r");
      delay(2000);
   Serial.print("AT+CIPMUX=0\r");
      delay(2000);
   Serial.print("AT+CSTT=\"internet\"\r");
      delay(2000);
   Serial.print("AT+CIICR\r");
      delay(2000);
   Serial.print("AT+CIFSR\r");
      delay(2000);
   Serial.print("AT+CIPSTART=\"TCP\",\"106.76.67.96\",\"2000\"\r");
      delay(2000);
   Serial.print("AT+CIPSEND\r");
      delay(5000);
   //----------------------------------------
    Serial.print("Current Temp:");
    Serial.print(cel);
    //---------------------------------------
    delay(100);    
    Serial.write(0x1A);
    delay(100);
    Serial.write("\r");
    delay(100);
    Serial.print("AT+CIPSHUT\r");
    delay(2000);
    delay(10000);
}

Please just post small amounts of code - don't make people download it.

thanks for reply
i am writing this code for web server

Serial.print("AT+CGATT=1\r");
delay(2000);
Serial.print("AT+CIPSHUT\r");
delay(2000);
Serial.print("AT+CIPSTATUS\r");
delay(2000);
Serial.print("AT+CIPMUX=0\r");
delay(2000);
Serial.print("AT+CSTT="internet"\r");
delay(2000);
Serial.print("AT+CIICR\r");
delay(2000);
Serial.print("AT+CIFSR\r");
delay(2000);
Serial.print("AT+CIPSTART="TCP","106.76.67.96","2000"\r");
delay(2000);
Serial.print("AT+CIPSEND\r");
delay(5000);
//----------------------------------------
Serial.print("Current Temp:");
Serial.print(cel);
//---------------------------------------
delay(100);
Serial.write(0x1A);
delay(100);
Serial.write("\r");
delay(100);
Serial.print("AT+CIPSHUT\r");
delay(2000);

please help me....
thanks in advance

You assume that every AT command succeeded. Why? Is that really a reasonable assumption?

i check this command on serial communication software.
but i don't receive any data on hercules tcp client and i am using stick for internet

=>AT+CGATT? /Check if GPRS is attached or not/
<=+CGATT: 1 /A response containing this string indicates GPRS is attached/
=>AT+CIPSHUT /“Reset the IP session if any**/
<=SHUT OK /This string in the response represents all IP sessions shutdown./
=>AT+CIPSTATUS /Check if the IP stack is initialized/
<=STATE: IP INITIAL /“This string in the response indicates IP stack is initializecl**/
=>AT+CIPMUX=0 /To keep things simple, I'm setting up a single connection mode/
https://vsb|ogs.wordpress.com/2013/1 1/28/tcp-connection-over-gprs-usi ng-si m900-and-at-com mandsl 2/2112/9/2015 TCP Connection over GPRS using SIM900 and AT Commands | Vishnu's Blogs
<=OK /“This string indicates single connection mode set successfully at SIM 900**/
=>AT+CSTT= ”APN", "UNAME”, ”PWD” /Start the task, based on the SIM card you are using, you need to know the APN,
username and password for your service provider
/
<= OK /This response indicates task started successfully/
=> AT+CIICR /Now bring up the wireless. Please note, the response to this might take some time/
<=OK /This text in response string indicates wireless is up/
=>AT+CIFSR /“Get the local IP address. Some people say that this step is not required, but if I do not issue this, it was not
working for my case. So I made this mandatory, no harm./
<= xxx.xxx.xxx.xxx /If previous command is successful, you should see an IP address in the response/
=>AT+CIPSTART= "TCP” , "www.vishnusharma.com”, "80" /Start the connection, TCP, domain name, port”*/
<= CONNECT OK /“This string in the response indicates TCP connection established
/
=>AT+CIPSEND /“Request initiation of data sending (the request)
/
<= > /The response should be the string ”>” to indicate, type your data to sencl/
=> xxxxxx /]ust type anything for now/
=>#026 /Now type the sequence #026. This tells the terminal.exe to send the hex code Oxla (which is Ctrl+Z) to indicate end of
data sending
/
<= xxxxxxxxxx /You should get some response back from the server. . .it would generally be a complain that the request string
was not valid...but that is a different subject. . .you have established the connection
/
/To close the connection/
=>AT+CIPSHUT /“Request shutting down of the current connections**/
<=SHUT OK /“Indicates shutdown successful**/

have you get the way to create the server ?? i´m also trying to achieve that.

AT+CIPSEND

Closed

Error

Any idea for this response ?