arduino + sim808 gps gprs gsm

hello, i GPS of my sim808 is not functioning even when i displayed it in open sky, the led still did not blink...i need you guys help urgently, thank you.

Did you really read the sticky post at the top of the topic? I have some doubts as almost all of the information requested there is missing in your post. Without that information we're not able to help you.

sorry sir, i dont understand by what you mean sticky postā€¦thus, the issue am having with my sim808 module is that the gps does not work anymoreā€¦im trying to make it workā€¦what could be the problem?

Sizzy:
sorry sir, i dont understand by what you mean sticky post

The first post on the list;

How to use this forum - please read.

And after you have read that post, provide more details in particular;

the gps does not work anymore

So it used to work, what did you do that may have caused it to stop working ?

srnet:
And after you have read that post, provide more details in particular;

So it used to work, what did you do that may have caused it to stop working ?

nothing really, because i think my code is fine.

Sizzy:
nothing really, because i think my code is fine.

So one minute its working, the next it was not.

You did not change anything, move anything and nothing at all happened between it working and not working ?

srnet:
So one minute its working, the next it was not.

You did not change anything, move anything and nothing at all happened between it working and not working ?

i am not sure...the network led of module blinds fine but the pps doesn't...there was one time, last week, the gps came up and worked but when i tried again it didnt work up till now

this is what i get on my serial monitor:

AT+CSMP=17,167,0,0AT+CMGF=1

ERROR
AT+CGNSPWR=1

OK
AT+CGNSSEQ=RMC

OK
State :0
Time :19800105235944.000
Latitude :
Longitude :

i need help on this, pls.

i need help on this, pls.

You still didn't read the sticky post "How to use this forum - please read", did you?

At least I don't find the requested wiring diagram and the requested (complete) sketch in code tags. You have to provide the information we need to help you!

i dont receive sms of gps coordinates on my phone, i only see the the coordinates on my serial monitorā€¦pls i need help.
here is the code and serial monitor output;

#include <SoftwareSerial.h>
SoftwareSerial sim808(7,8);

char phone_no[] = "+2348176996281"; // replace with your phone no.
String data[5];
#define DEBUG true
String state,timegps,latitude,longitude;

void setup() {
sim808.begin(9600);
Serial.begin(9600);
delay(50);

sim808.print("AT+CSMP=17,167,0,0");Ā  // set this parameter if empty SMS received
delay(100);
sim808.print("AT+CMGF=1\r");
delay(400);

sendData("AT+CGNSPWR=1",1000,DEBUG);
delay(50);
sendData("AT+CGNSSEQ=RMC",1000,DEBUG);
delay(150);

}

void loop() {
sendTabData("AT+CGNSINF",1000,DEBUG);
if (state !=0) {
Serial.println("StateĀ  :"+state);
Serial.println("TimeĀ  :"+timegps);
Serial.println("LatitudeĀ  :"+latitude);
Serial.println("LongitudeĀ  :"+longitude);

sim808.print("AT+CMGS=\"");
sim808.print(phone_no);
sim808.println("\"");

delay(300);

sim808.print("http://maps.google.com/maps?q=loc:");
sim808.print(latitude);
sim808.print(",");
sim808.print (longitude);
delay(200);
sim808.println((char)26); // End AT command with a ^Z, ASCII code 26
delay(200);
sim808.println();
delay(20000);
sim808.flush();

} else {
Serial.println("GPS Initializingā€¦");
}
}

void sendTabData(String command , const int timeout , boolean debug){

sim808.println(command);
long int time = millis();
int i = 0;

while((time+timeout) > millis()){
while(sim808.available()){
char c = sim808.read();
if (c != ',') {
data[i] +=c;
delay(100);
} else {
i++;
}
if (i == 5) {
delay(100);
goto exitL;
}
}
}exitL:
if (debug) {
state = data[1];
timegps = data[2];
latitude = data[3];
longitude = data[4];
}
}
String sendData (String command , const int timeout ,boolean debug){
String response = "";
sim808.println(command);
long int time = millis();
int i = 0;

while ( (time+timeout ) > millis()){
while (sim808.available()){
char c = sim808.read();
response +=c;
}
}
if (debug) {
Serial.print(response);
}
return response;
}

Statmaps?AT
Time :20190129213705.000
Latitude :9.854968
Longitude :8.916230
AT+CSMP=17,167,0,0AT+CMGF=1

ERROR
AT+CGNSPWR=1

OK
AT+CGNSSEQ=RMC

OK
State :1
Time :20190129214034.000
Latitude :9.854503
Longitude :8.908420
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT1
Time :20190129214034.000
Latitude :9.854503
Longitude :8.908420
AT+CSMP=17,167,0,0AT+CMGF=1

ERROR
AT+CGNSPWR=1

OK
AT+CGNSSEQ=RMC

OK
State :1
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT.
Time :20190129214122.000
Latitude :9.854473
Longitude :8.908300
AT+CSMP=17,167,0,0AT+CMGF=1

ERROR
AT+CGNSPWR=1

OK
AT+CGNSSEQ=RMC

OK
State :1
Time :20190129214601.000
Latitude :9.854038
Longitude :8.907757
State :1
Time :20190129214601.000
Latitude :9.854038
Longitude :8.907757
State :1
Time :20190129214601.000
Latitude :9.854038
Longitude :8.907757
AT+CSMP=17,167,0,0AT+CMGF=1

ERROR
AT+CGNSPWR=1

OK
AT+CGNSSEQ=RMC

OK
State :1
Time :20190129214725.000
Latitude :9.854202
Longitude :8.907788
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT
Time :20190129214725.000
Latitude :9.854202
Longitude :8.907788
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT
Time :20190129214725.000
Latitude :9.854202
Longitude :8.907788
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT
Time :20190129214725.000
Latitude :9.854202
Longitude :8.907788
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT
Time :20190129214725.000
Latitude :9.854202
Longitude :8.907788
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT
Time :20190129214725.000
Latitude :9.854202
Longitude :8.907788
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT
Time :20190129214725.000
Latitude :9.854202
Longitude :8.907788
State :1AT+CMGS="+2348176996281"

ERROR
http://maps.google.com/maps?AT
Time :20190129214725.000
Latitude :9.854202
Longitude :8.907788

This sounds like the same question that you posed in your other post ?

Do appreciate that these forums are populated by volunteers, if no-one knows the answer to your question, you may not get any replies.......................

Hello, I am trying to build a tracking device for soldiers, that would be able to track their health status and location. Currently, i'm in need of an arduino code for my sim808 (gsm gprs gps) module interfaced with a LCD display 16X2, that will be sending the gps coordinates via sms to my phone.
thank you. i'll appreciate it.

1 Like

Hello all ļæ¼ :smiley:

i heard about the satellite week rollover on April 6th 2019. anyone know if sim808 modules will be affected by this?

I posted on the wrong forumn ealier, sorry about that

thanks!

Fivevolts:
Hello all ļæ¼ :smiley:

i heard about the satellite week rollover on April 6th 2019. anyone know if sim808 modules will be affected by this?

I posted on the wrong forumn ealier, sorry about that

thanks!

And you should create your own post, with a suitable title. By now very few people will be reading a month old post with the title;

"arduino + sim808 gps gprs gsm"

See the guidlines at the top of each forum;

How to use this forum - please read.