0
votes

I am using the example gsm receive SMS example. This is the part with the issue:

  Serial.println("SMS Messages Receiver");

  // connection state
  boolean notConnected = true;

  // Start GSM connection
  while (notConnected)
  {
    if (gsmAccess.begin(PINNUMBER) == GSM_READY)
      notConnected = false;
    else
    {
  Serial.println("Not connected");
  delay(1000);
  }
}

Serial.println("GSM initialized");
Serial.println("Waiting for messages");
}

this gets printed via serial:

Serial.println("SMS Messages Receiver");

but nothing after that.

Could it be due to not enough power? I am using the mega and the gsm shield and powered from usb. the only light on the GSM shield is the on led.

When I disconnected and reconnect the usb cable the status led goes on and the net led flashes on and off, then after a few seconds they both go off.

2

2 Answers

0
votes

Yes. If both the LEDs go off then there is an issue with your power supply. Try a USB adapter.

0
votes

Usually, a lot of GSM modules required a lot of power(around 2 Amps) but a lot of USB ports only provide around 0.5 amps. So you have to use a high amperage USB socket or get a low power gsm module. You can look for the datasheets for the current consumption of the modules