Pages: [1]   Go Down
Author Topic: HELP sending data to remote host with SM5100B GSM shield  (Read 503 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I'm trying to send data to remote host (google.com) but keep getting +CME ERROR: 29 as an error

The module for sending code contains the following:
Code:
   //PROCESS 7 : CHECK SOCKET CONNECTION STATUS 1,1,0102,0,0,0 =  1 SOCKET CONNECTED
   //1,0,0104,0,0,0 =  0 NOT CONNECTED, 104 = SOCKET CONNECTING
  Serial1.println("AT+SDATASTATUS=1");
  delay(200);
  while(Serial1.available() != 0)
  {
    incoming_char=Serial1.read();    //Get the character from the cellular serial port.
    Serial.print(incoming_char);  //Print the incoming character to the terminal.
  }
 
  Serial.println("PROCESS 7 FINISHED");
 
    //PROCESS 8
  Serial1.println("AT+SDATATSEND=1,10");
 Serial1.println("1234567890");
  Serial1.println(26,BYTE);  // ASCII equivalent of Ctrl-Z
  delay(200);
  while(Serial1.available() != 0)
  {
    incoming_char=Serial1.read();    //Get the character from the cellular serial port.
    Serial.print(incoming_char);  //Print the incoming character to the terminal.
  }
  }

The output of my program is the following:

+SOCKSTATUS:  1,1,0102,0,0,0

OK
PROCESS 7 FINISHED

>
+CME ERROR: 29

---------------------
Can someone tell me what I am doing wrong ?
Logged

Pages: [1]   Go Up
Jump to: