I have connected an arduino uno with an sim 900A GSM modem. The modem was reading and displaying the incoming message properly with simple code. But the new GSM sim 900A modem is not responding to the code I used earlier. The GSM used is not a shield. Please help me out. Thanks in advance.
The code is as follows:
void setup()
{
Serial.begin(9600);
Serial.println("AT+CMGF=1");
delay(2000);
}
void loop()
{
while(Serial.available())
{
delay(50);
char ch = Serial.read();
Serial.print(ch);
}
}