Problems with GPRS Shield

Hello community :slight_smile:
I’m using this GPRS Shield Arduino GPRS Shield - Geeetech Wiki on an Arduino UNO. The shields jumpers are set to “Software Serial”, so I’m using the following code which should send something (eg. “OK”) on the serial console, but I see only the lines from “Serial.println”.

Here is my code (only void setup):

#include <SoftwareSerial.h>

SoftwareSerial SIM900(7, 8);
...some variables....

void setup()
{
  Serial.begin(19200); 
  SIM900.begin(19200); 
  SIM900.println("AT+IPR=19200");
  delay(2000);  
  Serial.println("Microtest");
  SIM900.println("AT+CMGD=1,4"); // delete all SMS  
  Serial.println("...alle SMS geloescht!");
  SIM900.print("AT+CLIP=1\r"); // turn on caller ID notification
  Serial.println("...Anruferkennung aktiviert!");
}

Can somebody help me please.
Thanks Frantischek!

Can somebody help me please.

You seem to be under the impression that some magic happens to get the response from the phone to the serial port. I hate to burst your bubble, but YOU have to make that magic happen.

I think that magic happens in my code - or am I wrong?

I think that magic happens in my code - or am I wrong?

Describe that magic. Show where you think that is happening.

The process is a bit like posting on the forum. You post using ( SIM900.begin(19200); SIM900.println("AT+IPR=19200"); delay(2000); ). The delay is so that we can read your post, and generate a response.

Then, you talk to your brother. ( Serial.println("Microtest"); ).

We post a reply, and then you go on with another request. ( SIM900.println("AT+CMGD=1,4"); // delete all SMS )

And, then, you talk to your brother some more ( Serial.println("...alle SMS geloescht!"); ).

Where are you reading what we have to say, and where are you telling your brother what we said? That is the "magic" part that you are assuming happens. It does not.

Sorry, maybe the loop contains the useful information :roll_eyes:

void loop()
{
  if(SIM900.available())
  {
    Serial.write(SIM900.read());
  }
  if (Serial.available()) 
  {  
    SIM900.write(Serial.read());      
  }
}

Even the lines:

  if(SIM900.available())
  {
    Serial.println("SIM900 available! ");
  }

don't show anything in the console.

Even the lines:…don’t show anything in the console.

Then your phone is not talking to your Arduino.

PaulS: Then your phone is not talking to your Arduino.

OK. So my code is ok and the device seems to be broken?

and the device seems to be broken?

Or isn’t powered correctly, or isn’t connected to the software serial pins you think it is, or any number of other problems. It has indicator lights that only YOU can see. They are doing something that only YOU can see.