Timestamp from GSM Network

dtluigi:
Dear MathiasVDA in order to see a reply from the GSM modem forget Software Serial! :wink:
First of all write: GSM gsmAccess(true);
Now you will be able to see all the AT Commands exchanged from the ATMega and GSM Module.
If you want to send your own AT Command please use this format: theGSM3ShieldV1ModemCore.println("AT+CCLK?");

Unfortunately, I know all that and still have the problem:

#include <GSM.h>
GSM gsmAccess(true);

char answer[100];

void setup()
{
  Serial.begin(9600);
  
  boolean notConnected = true;
  
  Serial.println("Connecting to the GSM network");
  
  while(notConnected){
    if(gsmAccess.begin("xxxx") == GSM_READY)
      notConnected = false;
    else {
      Serial.println("Not connected, trying again");
      delay(1000);
    }
  }
  
  Serial.println("Connected. Sending AT Command.");
  theGSM3ShieldV1ModemCore.println("AT+CNUM?");
  theGSM3ShieldV1ModemCore.println("AT+GSN?");
  theGSM3ShieldV1ModemCore.println("AT+CCLK?"); 
}

void loop()
{

}

And this is what I get in return:

Connecting to the GSM network
AT%13%
0 9>AT%13%%13%%10%OK%13%%10%
AT+CPIN=xxxx%13%
9 44>AT+CPIN=xxxx%13%%13%%10%+CPIN: READY%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
44 75>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
75 120>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%%13%%10%Call Ready%13%%10%
AT+CGREG?%13%
120 23>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
23 54>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
54 85>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
85 116>AT+CGREG?%13%%13%%10%+CGREG: 0,1%13%%10%%13%%10%OK%13%%10%
AT+IFC=1,1%13%
116 5>AT+IFC=1,1%13%%13%%10%OK%13%%10%
AT+CMGF=1%13%
5 21>AT+CMGF=1%13%%13%%10%OK%13%%10%
AT+CLIP=1%13%
21 37>AT+CLIP=1%13%%13%%10%OK%13%%10%
ATE0%13%
37 48>ATE0%13%%13%%10%OK%13%%10%
AT+COLP=1%13%
48 54>%13%%10%OK%13%%10%
Connected. Sending AT Command.
AT+CNUM?%13%%10%AT+GSN?%13%%10%AT+CCLK?%13%%10%