-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"getGPS()" does not return actual GPS coordinates. #13
Comments
Hi Foreign man Yes I have now a big issue with that problem. My code is a bit different that what you describe, I’m attaching it.. But, will you help me telling me were your code goes? I mean Void setup, void loop, before that?... I’m not very professional yet at this thank you in advance My e-mail in case is easyer is [email protected] |
i am also getting wrong position. what should i do ? |
Hi....
It turns out that what was wrong it was the dfrobot library download
Uninstall from arduino ide
Download it again from github and reinstall
All the troubles went away...
Something goes wrong when download that library (i have no idea what!!.. as it shows right data download, installs and all).. but that was my problem
Now working perfectly
Hope it helps
Cheers!!
El 22 mar 2019, a la(s) 3:22 a. m., harry1227 <[email protected]<mailto:[email protected]>> escribió:
i am also getting wrong position. what should i do ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#13 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Aqr7IvL5R1vKkPaYwRdR7u6Qs8U530CZks5vZKDRgaJpZM4SJoxq>.
|
Any one know how to send sms to multiple numbers |
hey can u help me to send the location to server using sim808 i have tried its not working #include <DFRobot_sim808.h> #define PIN_TX 7 //make sure that the baud rate of SIM900 is 9600! //DFRobot_SIM808 sim808(&Serial); char buffer[512]; void setup(){ //******** Initialize sim808 module ************* //*********** Attempt DHCP ******************* //************ Successful DHCP **************** //************* Turn on the GPS power************ void loop(){ tcp(); void tcp()
//*********** Send a GET request *****************
php code please help if u can |
la libreria, esta mal, ya probe en base a comandos AT y me muestra las coordenadas correctas pero con puro comandos AT... |
It works ! Thanks a lot! |
You need to put this new peace of code in the library .cpp |
Thanks @TheForeignMan . It was very Helpfull!!!
Or can just copy this function 👇 and replace the DFRobot_SIM808::getGPS() function in the DFRobot_SIM808.cpp file
The DFRobot_SIM808.cpp file can be located in the DFRobot_SIM808 library |
Hi,
This is a great library which has quickened my development with the SIM808 module. Many thanks for this!
Just as a heads-up, the "getGPS()" function doesn't actually return the GPS coordinates. The function simply divides the return N/S and E/W coordinates by 100 (DFRobot_sim808.cpp:1059 and DFRobot_sim808.cpp:1062) as below:
The above returns really inaccurate coordinates, and does not take into account N/S and E/W (positive and negative) coordinates. I have implemented a more accurate conversion, which converts the GPRMC message to actual coordinates. Please freely replace the code above with the code below (or simplify it!) :
Hope this helps!
The text was updated successfully, but these errors were encountered: