ArduinoGeneral

GPS/GPRS/GSM_Module_V3.0_(SKU:TEL0051)

userHead Lauren 2013-03-18 15:36:46 6033 Views9 Replies
A question about the GSM/GPRS shield v3.0 from lim

[quote]hai,

for my project, i need to detect the coordinate by using GPS, after that, the coordinate need to send out through sms.

the example coding ([url=http://www.dfrobot.com/wiki/index.php/GPS/GPRS/GSM_Module_V3.0_(SKU:TEL0051))]http://www.dfrobot.com/wiki/index.php/GPS/GPRS/GSM_Module_V3.0_(SKU:TEL0051))[/url] show that, when using GSM, the gps/gsm jumper cap need to put at GSM side. but when using GPS, need to put at GPS side.
the Jumper cap need to put where if i need to use both GPS and GSM on the same time.[/quote]
2013-04-22 11:01:43 @ mrksphoto

Hi,  from the schematic and datasheet. This shield is compatible with Arduino DUE.
userHeadPic Phoebe
2013-04-22 01:39:25 Hello,

is this shield Arduino DUE compatible?

Thanks in advance


Markus
userHeadPic mrksphoto
2013-03-29 10:51:57 Hi

Yes, in the sample code there is a command that can reset the board:

//reset GPS in autonomy mode
  Serial.println("AT+CGPSRST=1");
userHeadPic Phoebe
2013-03-29 08:37:19 hai,

is it any method that i can reset my board using program without pressing the reset button?
userHeadPic salim3
2013-03-28 11:28:43 Hi

There is a sample code [b]How to drive the GPS Mode via Arduino board[/b]  on the wiki doc , it send the GPS signal via UART, you can change it to send the GPS signal via GSM mode.

i think it is right that you setup the GPS& GSM . Maybe you should optimize your code ;D
userHeadPic Phoebe
2013-03-27 08:22:46 hai,

i main problem is do not know the correct way to setup the GPS and GSM.

if i write the setting like this, is it ok?
[size=10pt][b][b]
void setup()
{
  pinMode(3,OUTPUT);//The default digital driver pins for the GSM and GPS mode
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
  digitalWrite(5,HIGH);
  delay(1500);
  digitalWrite(5,LOW);

  digitalWrite(3,LOW);//Enable GSM mode
  digitalWrite(4,HIGH);//Disable GPS mode
  delay(2000);
  Serial.begin(9600);
  delay(5000);//GPS ready

  Serial.println("AT"); 
  delay(2000);
  //turn on GPS power supply
  Serial.println("AT+CGPSPWR=1");
  delay(1000);
  //reset GPS in autonomy mode
  Serial.println("AT+CGPSRST=1");
  delay(1000);

  digitalWrite(4,LOW);//Enable GPS mode
  digitalWrite(3,HIGH);//Disable GSM mode
  delay(2000);
  coordinate (); // receive the signal
 
  byte gsmDriverPin[3] = {3,4,5};

  for(int i = 0 ; i < 3; i++){
  pinMode(gsmDriverPin[i],OUTPUT);
  }
  digitalWrite(5,HIGH);
  delay(1500);
  digitalWrite(5,LOW);
  digitalWrite(3,LOW);
  digitalWrite(4,HIGH);
  delay(2000);
  Serial.begin(9600);
  delay(5000);
  delay(5000);
  delay(5000);

  Serial.println("AT"); //Send AT command
  delay(20000);
  Serial.println("AT"); 
  delay(20000);
  //Send message
  Serial.println("AT+CMGF=1");
  delay(10000);
  Serial.println("AT+CMGS=\"0197190627\"");//Change the receiver phone number
  delay(10000);
  Serial.print("$GPGGA");//the message you want to send
  content();
  delay(10000);
  Serial.write(26);
  while(1);
}


void content()//get the content data
{
        int t;
       
        t=123;//convert to the chinese time GMT+8 Time zone
        Serial.println(t);//Print data
        return;
}

void loop()
{
setup();
while(1);
}

thanks a lot
userHeadPic salim3
2013-03-26 10:18:33 Hi

Jumper caps at UART SELECT means that you can select the uart of  GPS or GSM by the hardware ,also you can select it by software like the following:

    [u]Enable GSM mode & disable GPS mode:[/u]
    digitalWrite(4,LOW);//Enable GPS mode
    digitalWrite(3,HIGH);//Disable GSM mode

    [u]Enable GPS mode & disable GSM mode:[/u]
    digitalWrite(3,LOW);//Enable GSM mode
    digitalWrite(4,HIGH);//Disable GPS mode

Note:if you select the uart of GPS or GSM by software, please remove the two jumper caps at UART SELECT

Last, if release the  driving pin , please remove jumper cap at J10-J12.
userHeadPic Phoebe
2013-03-26 09:04:56 hai,

first, i need to turn on GPS to receive the signal and save the signal in the array. after that, i need to turn on the GSM to send the content of Array by using SMS.

i would like to ask,
1) how i put the jumper cable? from where to where?

2) after i turn on the GPS and receive the signal. i save the $GPGGA sentence in array. after that, i turn on the GSM, but it does not send out my message. is it because my GSM does not turn on?

3) i just had 1 jumper cap at UART SELECT,it wil cause any problem?

4) if release the  driving pin , is remove jumper cap at UART SELECT or J10-J12?
userHeadPic salim3
2013-03-18 18:44:33 Hi

The two jumper caps is for selecting digital IO pins, that means you can choose other digital pins for enable GPS or
GSM mode via jumper cables.(Default:Digital 3 and 4 ). So take off the two jumper caps from the Uart select and enable the GSM or GPS mode via setting the D3 & D4 in your code.
Please check the "GSM mode & GPS mode Selection" on the wiki doc when you use this module. Have a try~~

Good Luck ;)
userHeadPic Phoebe