I experience a strange behavior of GSM shield when using the official GsmWebClient Example.
These are the components I am using
- Arduino Uno
- Arduino GSM Shield
- T-mobile SIM card PIN protected
- External Power Pack for GSM Shield (i noticed that without the external power I cannot get the GSM shield up and running)
Here are the only changes I made to the sample code:
// PIN Number
#define PINNUMBER "1234" // I entered my SIM PIN here
// APN data
#define GPRS_APN "internet.telekom" // i use a t-mobile sim card in germany
#define GPRS_LOGIN "tm" // i use a t-mobile sim card in germany
#define GPRS_PASSWORD "tm" // i use a t-mobile sim card in germany
Now when I run the sample code (it should open a txt file from arduino.cc) it randomly hangs (8 out of 10 times).
When I say "hangs" it means the code stops with the output "Starting Arduino web client" in serial monitor and nothing happens.
However when I switch on debugging everything runs as expected (I am getting the result screen in 10 out of 10 times).
GSM gsmAccess = true;
Thank you very much for any help or hints!