problem about the UNO and SIM808 the gps gsm module

i am doing a project that is a gps tracker. by using SIM808 and Arduino UNO such that to receive GPS location then the gsm module of SIM808 sends the gps location to my Phone via sms.

the part of sending and receiving sms have been carried out successfully .
the another thing i want to archive in this setp which is to get the GPS location via SIM808 gps module.
i have try to connect and program the sim808 like as the The Ublox NEO6MV2.
but fail.

how can i do?
have any one has the similar thing that would help me? codes or tutorial whatever.

the final goal i want to have would like this video:

push push

Hi,

Have not used a GPS function of the SIM modules, but if you can send out SMS mesages, wonder why you cannot get the GPS data ?

You can do a simple test program and send the 808 the required AT Command and you should get the GPS data back onto the serial monitor.

AT commands here , see page 6 and 7 -

Here is a simple program that shows how to send an AT command.
There a full programs like AT Commander you could use as well.

/*  Basic AT tester for Sim900/800 Shield or Module Without a Sim Card
 *  
 *  The shield or module can be run from the Unos power supply.  
 *  
 *  Power On the Shield, the Net led should flash 1hz and the Status led  is on. 
 *  
 *  Upload this program, start the Serial Monitor at 19200 baud
 *  In the Serial Monitors Send box - 
 *  Type in  AT+GSN and it should return the IMEI number printed on the chip
 *  Also try  AT+CCLK?
 *  
 */

#include <SoftwareSerial.h>

SoftwareSerial SIM900(7,8);    // RX, TX

void setup()
{
  
  SIM900.begin(19200);
  Serial.begin(19200);
}

void loop()
{
  if (SIM900.available())
  {
    while(SIM900.available())
    {
      Serial.write(SIM900.read());
    }
  }
  if (Serial.available())
  {
    SIM900.write(Serial.read());
  }
}

ricky101:
Hi,

Have not used a GPS function of the SIM modules, but if you can send out SMS mesages, wonder why you cannot get the GPS data ?

You can do a simple test program and send the 808 the required AT Command and you should get the GPS data back onto the serial monitor.

AT commands here , see page 6 and 7 -
https://cdn-shop.adafruit.com/datasheets/SIM808_GPS_Application_Note_V1.00.pdf

Here is a simple program that shows how to send an AT command.
There a full programs like AT Commander you could use as well.

/*  Basic AT tester for Sim900/800 Shield or Module Without a Sim Card


*  The shield or module can be run from the Unos power supply. 

*  Power On the Shield, the Net led should flash 1hz and the Status led  is on.

*  Upload this program, start the Serial Monitor at 19200 baud
*  In the Serial Monitors Send box -
*  Type in  AT+GSN and it should return the IMEI number printed on the chip
*  Also try  AT+CCLK?

*/

#include <SoftwareSerial.h>

SoftwareSerial SIM900(7,8);    // RX, TX

void setup()
{
 
  SIM900.begin(19200);
  Serial.begin(19200);
}

void loop()
{
  if (SIM900.available())
  {
    while(SIM900.available())
    {
      Serial.write(SIM900.read());
    }
  }
  if (Serial.available())
  {
    SIM900.write(Serial.read());
  }
}

for the sending and receiving the SMS. i just follow the video in youtube step by step and try it.
in fact, the device can only receive the SMS from the cell phone. Fail in sending SMS.
i have try to use AT command but it the serial monitor shows not thing.

As well as applying power to the board, did you manually switch it on with the PWRKEY or add in a switch on pulse in the software if you have connected pin 9 ?

Cannot test things further as I have given my sim800 module away, only have a 900 now.

// software equivalent of pressing the GSM shield “power” button

  digitalWrite(9, HIGH);
  delay(1000);
  digitalWrite(9, LOW);
  delay(1000);

any one has the soluation ?