General

SKU:TEL0051 with Arduino Uno not send message

userHead Allan 2014-08-07 21:22:47 5962 Views7 Replies
Hello

I am new to developing with Arduino,
But I'm doing a project for a university course,

I need to capture the current location and sends it via sms.

For this, I bought a GPS / GPRS / GSM Shield V3.0 (SKU: TEL0051) shield and an Arduino Uno.

I'm powering the Arduino with USB and a 9V supply

I used the examples described in http://www.dfrobot.com/wiki/index.php/G ... U:TEL0051)

But I could not send sms or make calls.
DFRobot lights are on and the Serial Monitor can monitor the correct commands

Anyone know a solution?
Or problem that may be causing this?


Thanks
2014-08-14 03:20:08 The problem was in S1
With your help, we can solve the problem

Thanks a lot

Now I'm trying to capture GPS data, if any questions appear I will return to post on the forum
userHeadPic Allan
2014-08-14 03:08:15 Thanks a lot Grey,
With your help I could send a message

But this shield not sending all messages

Seems to be "64ms On/ 3,000ms Off    SIM908 registered to the network"

The CoolTerm shows the following result on the screen:
Code: Select all
AT
AT
AT+CMGF=1
AT+CMGS="xxxxxxxxxxxx"
HELLO
userHeadPic Allan
2014-08-13 10:08:09 Network indication
State                         SIM908 behavior
Off                                 SIM908 is not running
64ms On/ 800ms Off SIM908 not registered the network
64ms On/ 3,000ms Off SIM908 registered to the network
64ms On/ 300ms Off PPS GPRS communication is established

Hey Allan,
Could you check the NET led? Is it in the state of "64ms On/ 3,000ms Off"?
What is your SIM card network? Does it support GSM network?

And have you tried AT command? please check How to send a SMS.
userHeadPic Grey.CC
2014-08-13 01:39:03 Changed to:
S1: Prog, and turn to Comm after uploading;
S2: Arduino;
S3: Middle


But I still can't make the shield send a message.

I'm using this code:
Code: Select all
// Product name: GPS/GPRS/GSM Module V3.0
// # Product SKU : TEL0051
// # Version     : 0.1
 
// # Description:
// # The sketch for driving the gsm mode via the Arduino board
 
// # Steps:
// #        1. Turn the S1 switch to the Prog(right side)
// #        2. Turn the S2 switch to the Arduino side(left side)
// #        3. Set the UART select switch to middle one.
// #        4. Upload the sketch to the Arduino board
// #        5. Turn the S1 switch to the comm(left side) 
// #        6. Plug the jumper caps back to GSM side
// #        7. RST the board 
 
// #        wiki link- http://www.dfrobot.com/wiki/index.php/GPS/GPRS/GSM_Module_V3.0_(SKU:TEL0051)
 
byte gsmDriverPin[3] = {
  3,4,5};//The default digital driver pins for the GSM and GPS mode
//If you want to change the digital driver pins
//or you have a conflict with D3~D5 on Arduino board,
//you can remove the J10~J12 jumpers to reconnect other driver pins for the module!
void setup()
{    
  //Init the driver pins for GSM function
  for(int i = 0 ; i < 3; i++){
    pinMode(gsmDriverPin[i],OUTPUT);
  }
  digitalWrite(5,HIGH);//Output GSM Timing 
  delay(1500);
  digitalWrite(5,LOW);  
  digitalWrite(3,LOW);//Enable the GSM mode
  digitalWrite(4,HIGH);//Disable the GPS mode
  delay(2000);
  Serial.begin(9600); //set the baud rate
  delay(5000);//call ready
  delay(5000);
  delay(5000);
}
 
void loop()
{  
  Serial.println("AT"); //Send AT command  
  delay(2000);
  Serial.println("AT");   
  delay(2000);
  //Send message
  Serial.println("AT+CMGF=1");
  delay(1000);
  Serial.println("AT+CMGS=\"xxxxxxxxxx\"");//Change the receiver phone number
  delay(1000);
  Serial.print("HELLO");//the message you want to send
  
  delay(500);
  Serial.write(0x1A);  // sends ctrl+z end of message

  delay(1000);
  Serial.write(26);
  while(1);
}
Already tried several codes but none worked so far  :(
userHeadPic Allan
2014-08-12 16:04:00 I guess it caused by S1,
S1 is the switch of the Serial.
Prog: Cut the connection between module and Arduino, then you can upload the sketch
Comm: Make a connection between module and Arduino.

S2:
USB: Contact to USB port(AT command)
Arduino: Contact to Arduino

So if you turn S1 to Prog, Arduino can't talk with the module. Please turn S1 to Comm side after upload.
And which code are you using now?
userHeadPic Grey.CC
2014-08-12 02:52:31 Thanks Grey,

It is powered by a 9V source

S1: Prog
S2: Arduino
S3: Middle

There are three LEDs
Power: On
Stat: On
Net: Switching

Sorry for the quality of pictures,

You know what is the problem?
userHeadPic Allan
2014-08-08 10:15:18 Welcome Allan,

It will be caused by many factors. Could you tell me further information?
Like:
What is power supply?
What is the position of three switch?
There are three led indicator, what is their status?

It is better to attach a photo about it.
userHeadPic Grey.CC