Go Down

Topic: Arduino GSM Shield not responding? (Read 39316 times) previous topic - next topic

ShadedCyan

I'm trying to get my arduino GSM shield working with the example "Send SMS" code provided. However, when I upload and compile the program, the serial monitor displays "SMS Messages Sender" and nothing else occurs.

Would greatly appreciate it if someone can tell me where I could have gone wrong.

I'm currently using the Arduino Mega. I'm following the guide provided by the Arduino's website with the code part of the example that comes with the Arduino program. Attached is wad is shown on the monitor.

I am using both a USB cable and an external power supply. I have performed the jumper wire modification required for the Mega to work with the shield as well.

robtillaart

no experience, do you have a sim card in the shield?

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

rossati

Hello

I also have troubles working with GSM Shield:

  • is erratic, rarely access the net

  • the access time of gsmAccess.begin(PINNUMBER) is abnorme

  • so the gprs.attachGPRS (my be worst)


I'm afraid to put myself in a business similar discomfort with how of Arduino Yun.
My only (enough) positive activity on Arduino was with WIFI Shield.

John Rossati


Alex198604

Hello I´m also new in the arduino-world!
I also want to use the arduino mega bord 2560 with the gsm/gprs shield but it doesn`t work.

I think there must be a problem with the sim card connection, because i tried the whole process (upload the programm, sim card with no pinnumber, serial monitor......wait) without sim card and arduino didn`t recognise a problem.

Here a shortcut from the gsm library:

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



This program should tell you that you have connected or not, but it doesnt!!

It doesnt tell me anything in the serial monitor!


So i hope someone could help me/us because i have tried everything i could with no result.

rossati

Hello

my be the problem on GSM library:

"The GSM3 library has an error. It includes HardwareSerial.h instead of Arduino.h in some classes."

see http://forum.arduino.cc/index.php?topic=258591.0

John Rossati

MarcoSilenzi

hello

I have the same problem....only "SMS Messages Sender" appear.

Did someone solve it?

LLmdw

#6
Oct 21, 2014, 07:00 pm Last Edit: Oct 21, 2014, 07:04 pm by LLmdw
I'm also having this problem. Seems to be popping up a lot lately. I've tried all the basic fixes such as using external power supplies or trying other SIMs and still can not find a solution. I'm using an Uno rather than the Mega.

Anyone with an idea would be very appreciated!


cabbi

I have the same issue, especially when the board powers up.

Looking around this forum and StackOverflow I did arrange this piece of code. It has a timeout and if the GSM module does not initialize, the software will restart.

This does NOT fix the issue itself, but does a workaround to avoid the module to get stuck. Sometime, it needs a few restarts to get the GSM Shield initialized.

Code: [Select]
void(* SoftReset) (void) = 0; // declare reset function @ address 0

void InitGSM(char* pin)
{
   unsigned long myTimeout = 50000; // YOUR LIMIT IN MILLISECONDS
   unsigned long timeConnect = millis();
  
   Serial.println("\nTrying to connect..");
  
   // Use async mode and requires that GSM debug mode has been set on GSM object creation
   gsmAccess.begin(pin, true, false);
  
   while(millis()-timeConnect < myTimeout)
   {
      // Call this if debugging is on. Otherwise we will never reach GSM_READY...?!?
      gsmAccess.ready();
      
      // might not call ready too often.??? See GSM3ShieldV1AccessProvider.cpp, GSM3ShieldV1AccessProvider::begin
      delay(1000);
      
      // Status check
      if (gsmAccess.getStatus() == GSM_READY)
      {
         return;  
      }
   }
   Serial.println("\nTimeout!");
   delay(500); // Let the message printout before reset is performed!
  
   SoftReset();
}

 
I'm deeply investigating the why of this issue. Having the GSM debug feature on, I saw the GSM module stuck at the first AT attempt. So maybe I'll change the GSM library code to retry this first initialization step. Once this first step has passed, the other steps just run well (that's what I noticed so far)

Hope this helps,
Cabbi

P.S.
Does the Arduino's SIM900 GSM module have the same kind of issue?

MarcoSilenzi

where should I put this code? inside the setup?

cabbi

where should I put this code? inside the setup?
Typically, yes!

The above 'InitGSM' function replaces this:

Code: [Select]
   if(gsmAccess.begin(PINNUMBER)==GSM_READY)
      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }
  }
 
  Serial.println("GSM initialized");

LLmdw

Hi all, I found a "fix" for this problem for me. Might be worth it for you to try as well. 

I got in touch with telefonica through their "contact us" link on the page where you can manage your SIM card that came with the GSM shield.

They informed me that they had had some server issues, and that the SIM I activated hadn't actually been activated on their end. They took care of this and my setup then worked just fine!

They also informed me that they have been having bug issues with the PINManagement example sketch. If you're using this sketch at all, try another GSM example sketch such as SMS or WebClient.

Apis66

Hi,

I still have problems to connect arduino gsm shield to the network.
I've tried to use the suggested init procedure with no success.

I've also run many examples of the library.

The problem is always the same.

No access to the network.


Anyone with an idea would be very appreciated!

Regards,

/A

ronaldgadget

I also run into this problem with the Arduino GSM-shield and Mega2560.

- erratic behavior when powering up or when resetting the Arduino.
- program is hung at gsmAccess.begin(PinCode)==GSM_READY statement
- I see that the network LED turns off
- from here you can wait until eternity....

==> I found out that a longer power off cycle (unplug power, wait at least 30 seconds, replug power) then will usually get the GSM going, without any program change.

Of course, this does not explain the erratic behavior....
Ronald Gadget - discovered Arduino in Sept 2014 - built 4 systems with it. Professionally building uServers - see www.zurich.ibm.com/microserver

ronaldgadget

After working for most of Saturday and Sunday with the GSM shield on the Mega 2560, I come to the following insights:
  • When running using USB power from the PC, the GSM power appears marginal, and restarting it is difficult
  • A true reset signal is completely missing in the design - also on the Quectel module
  • The D7 input signal is redundant, as the power button 'key' turns on power automatically
  • The timeout code for using AT commands using millis() is buggy - using millis() gives unexpected results
Ronald Gadget - discovered Arduino in Sept 2014 - built 4 systems with it. Professionally building uServers - see www.zurich.ibm.com/microserver

ziocal

Hi Guys,
I just bought the GSM Shield and I have the same problem of ShadedCyan and I'm using Arduino Leonardo.  When I upload and compile the program "Send SMS", the serial monitor displays "SMS Messages Sender" and nothing else occurs.

Did someone solved this problem so far?

Thank you All


Go Up