Arduino GPS tracker, SIM808 version
HTML-код
- Опубликовано: 6 янв 2018
- Previous video: • Arduino GPS tracker
More previous video: • Arduino + GSM (HTTP GE...
SIM808 dev board (Banggood): goo.gl/fQHbxw
GPS antenna (Banggood): goo.gl/8dXD2P
Arduino sketch: www.iforce2d.net/sketches/sim8...
GNSS AT commands doc download: files.banggood.com/2016/06/SKU... Развлечения
What a brilliant explaination. Way to go!
Awesome. I have an additional application that I would like for the Arduino to do, but this whole set-up is one step closer for me to create a motorcycle alarm.
great project idea ima have to as well
very nice Chris. Great follow up. BTW I built a cnc machine out of wood but followed your vids. Works Great
cool, what size? Is it working out ok?
SUPERB!!! :D Very nice! I am really interested in doing this!
reeeeeally great and helpful video, cheers
Excellent video
Do you have a video where you a sending a message in the while loop() using sim808?
Thanks
Seeing this for school project....
i have a very similar module from adafruit , A7 module with 32u4 micro controller built in.
thy call it 32u4+A7 .
do you think there will be huge difference in the code?
For anyone in British Columbia, Canada and has a FIDO sim card the APN is: "Fido-core-appl1.apn" If you have a Rogers Sim card Rogers APN is "rogers-core-appl1.apn".
Banggood don't seem to have any gsm antennas available, can anyone suggest a source for a suitable gsm antenna.
thanks
Can you send pictures to a website using the SIM 808? (arduino+arducam+SIM 808)
Hello, i have problem with sim868. All AT commands for gps/gnns give me a ERROR. BT also don`t working.Should i upgrade firmware , or i`m hit defective unit and is it serial problem with these chips ?
Nice video!! I Have a question, I Have a lipo baterry, with the regulator to send 5v to sim808 and 3A but the leds of sim808 turn on two or three seconds, then turn off and then don't turn on again. I don't know what May be the problem
I am talking about the leds net, sta and pps
Hey man, what a great job with this module, in fact I just got one of this 2 days ago and I was thinking to parse the data using the tinyGPS library cause I didn't knew that this module gives you the parsed data so I'm going to take a look to the SIM808 AT commands, and I wanted to ask you, did you use Google maps inside your page? Cause I want to do something like that in my page, maybe build a GPS tracker and show the info in real time over a map in my own domain, thanks!
Looking for this almost exactly, could you help me fit it into my dog collar?
sendGSM("AT+SAPBR=3,1,\"APN\",\"internet.itelcel.com\"") is this okay when changing my APN configuration? or should I just put the name?
Sir I want misscall through relay on/off code using arduino and SIM 900a plzz
I did everything as showing in video but only getting ??????? Little help here.
THANK YOU
How can make it real time with firebase or other server?
does it also work with a simduino?
Great project ...But mine didnt work...i am getting only ???? this..i did exactly described in the video..if you can help me to solve this please reply me..thanks in advance
Hi, iforce2d :) I would like and appreciate your help. I'm building a GPS tracker, similar to the one you built some months ago. I have successfully managed to get all the GPS info, coordinates, time, etc. The impasse I'm having is with the connection to the Internet so that I can see the trip in Google Earth or Maps. I've seen quite a few of your videos but cannot manage to get the connection rolling. So, few questions: What app/program did you use to see the trip? How do you establish such connection? How do you upload your coordinates/page info to the app? Hope you can help me. Thank you!
I'm using HTTP connections via a cellphone module, see the "previous video" links in the description. I don't know what you mean by "app", the display is done in a web page, you can see how the Javascript does it by looking at the webpage source. If you mean how did I put the values into a database, that is extremely boring so I will not be covering it, but it is about the most basic possible PHP you can do, pretty much just these should explain it:
www.w3schools.com/php/php_mysql_insert.asp
www.w3schools.com/php/php_mysql_select.asp
If you are asking how to set up web hosting, or configure a webserver, and a database, or about PHP coding, that is even more boring and I will not be covering that either, but there are thousands of pages on the web where you can learn about it.
I have seen many of your videos and have the same question. I think Zeromus J couldn't explain what the question is. Actually I'm wondering that how you send data to your hosting or webserver. I mean getting coordinates is okay, but how to send these coordinates to the server? By GSM or GPRS? Sim using two types of data, credit GSM and data internet (GPRS or 3G,4G).. Is it send data in form of messages or using data internet? I'm wonder I deliver what I want to ask or not , thanks :)
i am working in my fyp project its working but one problem aries in my project . Actually Project have two feature first scan the rfid card and send to web server for identification ,second get gps coordinate continuous for real time tracking of his vehicle and send lat lng to same web server.
Driver can scan his card any time while vehicle running or stop thats mean I want rfid scanner active all time and once the card scanned that detail send to web server database through http connection but problem occurs of gps scanner because its continuously running and data sending to http web server mode Now when driver scan his card it will not scanned till gps and gprs complete his loop once they complete the card get scanned its very long process to hold the card at reader.
What I want, RFID scanning and gps location sender functions run in parallel way as rfid reader alway active even gps sending data in background mode live service. I have two priority for this project sending gps coordinate continuously as well as scan rfid any moment that card is placed.
all problem occur due to http connection once gps is in the function of http it take time and not scan RFID.
Can I run both rfid scan and gps acquisition process simultaneously rather http connection work in background
do you know what could be the problem? on my serial montor it stays on (waiting for sim to start) I know that my sim work just fine, I tested with other codes
Do everything manually first like I showed in the video, then you will be able to debug it yourself
Hi iforce2D. First of all, thank a lot for you video it helped a lot. I was able to send gps position to my webserver but when I go in my car, when I go through a tunnel I lose the GPS signal and then it costs a lot to get back the signal. Maybe after some kilometers or when I slowdown a lot. Do you have the same problem with SIM 808 module?
Probably yes, as with any GPS. That's just how GPS works. I have not tried any tunnels though.
Hello, I am trying to use GPS and GPRS simultaneously on this module is it possible? I am trying a TCP connection with the server but not able to establish.
Yes, that's exactly what I did in this video. Start with the previous videos instead of trying to do this one first with no previous experience.
Please give website source code. How can I do it with Owntracks
Nice video! Is it possible to send and plot the data directly to QGIS web?
I have an issue with the GPS AT comands, they all return Error, Just the GPS cant even attach the gps with AT+CGPSPWR
You now what could it be?
it sounds like you have not connected both ground on the sim 808, thats important
WOOOT!!!! WOOOT!!!! Thank you so much. I finally got my SIM808 EVB-3.2 working and useful!!! I would humbly ask if you would be so kind as to instruct me on how to add ALTITUDE. (Perhaps for balloon flight?). That being said I am not certain if Altitude is one of the comma separated values that is available or even if it can be parsed.
Isn't that 'MSL altitude' value what you want? I changed the server code so that if you add a 'msl' parameter to the submitted URL that value will be inserted into the hAcc value.
"add a 'msl' parameter to the submitted URL"... sorry for being so dense but I am uncertain as to where or how to "add a MSL parameter". As in.. the format of doing so? That being said I am most appreciative of you responding to my request. Now if I could just figure it out... DOH! Congrats BTW on cracking the logic of the onboard controller on the wheelchair rover. I was one of the guys that posted in video 1 to "get a Sabretooth". That is what I am running, but kudos to you in hacking the proprietary protocol. Well done.
The MSL value is an integer, look at how other integers are handled, eg. you can copy the same method as for 'fixStatus'. Specifically, in sim808.h you need to add a new variable and assign the parsed value to it, and in sim808GPSTracker.ino you need to add it to the parameters passed to the server. Basically, just search both files for 'fixStatus' and copy whatever is done for the fix status value.
Worked perfectly bro...thank you very much.....also can you make a video to send the gps to thingspeak server??
How did you make work? I’’m trying to make mine to work but. I don’t see anything in the web, all I see is a 0
@@saulito85 YES I AM FACING SAME PROBLEM
Great product! I am building data logger which will communicate with remote servers. Battery is my main problem. What are specs of this battery used in your project? mAh, voltage, current ... ? What is power supply for your GPS module? I saw a lot of people having problems with correct power supply for GSM/GPS modules. Thanks in advance!
9 VOLTS
What is the power supply used in this circuit
This one: goo.gl/vSQBxM
Dear iForce2D, thank you for the great upload. I wanted to ask if I could pay you to write me up a code?
I need the sim808 to send me a text message containing coordinates of a position when a current sensor has been triggered past a certain threshold. So I will need a current sensor module and the sim808.
Let me know if this is possible.
Many thanks
hey there do you still need that code ?
Small tip - if you have stability issues or something, you might want to add a 1000mF capacitor on power pins for the GPRS module. I thought mine is defective until i did just that. Tbh, i was using one of those diy kits that cost ~$3.
which controler are used
Sir, I have a question.
Right now I'm doing my final year project using mobile apps and this Arduino GPS tracker staff.
So the problem here, I stuck how to connecting to my mobile apps and this Arduino GPS tracker staff.
From your experience, do you know what is the method that I can use?
'mobile app' you mean like android or iOS? I have no idea.
Yes, sir. It's android.
Okay then, thank you for your time.
By the way, it's a good tutorial from you sir.
Hi mate, Thank you for the videos. Just wanna ask from you. How do you handle signal lost when mobile network is not available during the part of the trip? Is the SIM808 can recover itself when the mobile network is available? Or i cannot track my device anymore using SMS. Cheers.
From where I live the mobile network is lost regularly as I drive into town, and it recovers ok.
ruclips.net/video/Lphe8Vih5VY/видео.htmlm43s
On the demo part in google map, I see there are orange arrows to show the direction of your device. How can you do that ? Can you explain me ?. As right now, I also made a device to track my car, but in my map, it just show only the car's position and I'm in an obstacle of finding a way to show the car's direction like yours too. So, Im very happy if you can show me how to do that. (I also used Sim808, arduino, google map API like you).
I know in GPS data, there is a field called Course over ground. I dont know what it can do with the direction @@
You can draw any kind of shape with a polyline:
developers.google.com/maps/documentation/javascript/examples/polyline-simple
The GPS data has a 'heading' value which is the direction of movement.
wow, I dont know GPS data has something called heading value. So if i used sim808 and use CGNSINF command, what field in the return tell about that heading value ?
did not explain the php file??
what library should I use?? @iforce2d
Watch all the previous videos....
Someone needs to make a board with the sim808, an atmega328p and a relay (for immobilisation), then you can make find my car app with remote imobilization
Hello I really want to see your codes but your link that is on your description is not working.. Is there other way I could get your sketch codes??? I really appreciate if I could...
Please let me know THANKS!!!
Copy and paste this into your browser address bar
Don't click the link here on RUclips
www.iforce2d.net/sketches
@@iforce2d I got your files!!! I really appreciate! Thanks! lol
Which the arduino board you are using is it nano......???
pro-mini
Does the SIM808 work on 3G network? In Australia our 2G was shutdown years ago.
hmm.... I seem to recall, it does not. I actually had to get a second SIM card for Vodafone, which will maintain 2g until 2025 here.
@@iforce2d can you recommend a GPS GSM board that I could use for 3G?
@@theUsesOFnot sorry, don't know of any other than these 2G ones I've tried.
I am getting first two lines properly at the serial monitor but then these symbols " ??????? " get repeatedly produced as output!! Can you help me on that and also can you provide me a link to the sim808_test program which you used in to test this module because I couldnt find it anywhere
Please watch all the videos from the beginning. You should not be asking such basic questions on this video, it is a very complex project. The link to the arduino sketch is given in the description.
Waiting for sim startup and then it shows??? In serial monitor.....is my baud rate an issue?? Bro i watched all your videos yesterday but still not getting any idea...pls help me on this
iforce2d shall i send u a pic of the output?
Have you ever played "spot the difference"? Do everything EXACTLY as I did in my videos and find the first point that you get a different result.
iforce2d ook brooo il do and come backk
Hello nice video! What do I need to change if I want to use an arduino uno?
The uno and pro-mini use the same microcontroller. You'll need to change the board setting in the arduino IDE, otherwise all should be the same.
what capacity of battery you have used in the project
This is a very low power thing, the capacity of this battery could run it for many days so not really relevant. But since you asked it was a 800mAh 3S lipo. But again, not relevant.
what are the best battery for long life used for above project
The link for the arduino sketch doesn't work.
Oops, thanks for reminding me - try again.
Hi, I did everything as you said. I also did it manually on Serial Monitor. I am able to get successful result on Serial Monitor. When I'm uploading the code. My code is getting stuck at Waiting for SIM startup.... Any Suggestions????? Thank You.
What other print statements in the code are you expecting to see?
Standard approach when you are wondering what your program is doing, is to add logging.
@@iforce2d Thank you so much for your reply. I'm expecting Parameters, that we are writing to Serial monitor through code such as "CGSINF result for is" etc.
Hey Chris, can You tell something more how to implement google maps api to show those positions that were read, and show it in the browser ? Maybe even little example code? ;)
Greetings from Poland!
whooops, i think that request might be too ahead. Gotta catch up with previous videos ;)
tons of examples here: developers.google.com/maps/documentation/javascript/
Bro i got a doubt, what is the specification of your battery ?
I'm using a 3S lipo battery here, but that's not really important. The important thing is you need to provide a 2A capable power supply at 5V.
iforce2d ok bro and another doubt....will the battery get damaged while stepping down the voltage? Since im stepping down a 12v 5a bike battery down to 9v 2.3a will it have any effect on the battery??
when i opened the website it says 0
help me
watch all the previous videos, all is explained
Thank you for sharing such video , How to make the SIM808 to send GPS info to my Cell phone ????,instead of HTTP request ,I believe its more practical , do you recommend any reference ??? Thanks again
ruclips.net/video/9UEcT5GxdBk/видео.html
Thank you
sir i set the journy code =arttracker and uplode the programe ,and at serial port i get lat long etc and httpaction=0 /output is ok
i try to see output at webside but there is nothing .
i see the journy code here www.iforce2d.net/gt/checkJourney.php?jn=arttracker
it is ok
than i go on www.iforce2d.net/gt/index.php?jn=arttracker&tz=13&os=10<=50
but there is nothing what should i do sir
Let me guess, you just copy+paste my code and expect it to work, without doing everything manually, step by step in the arduino serial monitor first to check if it works. Are you in New Zealand? Are you using a Vodafone SIM card? No, I don't think so.... but if you copied my code you will be trying to use New Zealand Vodafone access point code, which will never work. I don't know how many times I have said this now, but you need to watch all the previous videos so that you can do a basic HTTP request. You have to learn to walk before you can run.
Here is the first video of my series where I explained the beginning steps of using HTTP, you need to watch this and do EVERY STEP just like I did (except use the access point code for your country and network of course). ruclips.net/video/9UEcT5GxdBk/видео.htmlm1s
Let me say again... do every step. EVERY STEP.... get it? You can't just skip to the end and paste in some code and expect it to work. If you did every step to begin with you would probably never need to ask me any questions here....
@iforce2d how can i contact you?? I want to make a project like this, and i have some questions, thanks!
You just contacted me :) Discuss it here so that others will benefit from our discussion in the future, is the reply you would get anyway.
Can i make everything the same like you did, without that battery ? Only using USB cable from computer to my arduino? I have Arduino UNO so im thinking about making project on arduino that i have. I haven't checked your all videos yet, but i gonna do it soon. Yesterday i ordered, SIM808, antenna, and thinking what else do i need. Because ill get all the stuff at the mid of May, and my project presentation will be one week later, so i want to get all the stuff together at the same date and try to make project like this. Thanks, im thinking of more questions while you answering me :D
I think if you watch all the previous videos first, you wouldn't have these questions :) Yes, the UNO can handle providing enough power.
Oh thanks, ill check your videos today i think. What about wiring Arduino UNO, with other components of this project? Can i find it somewhere , or is it possible to see in the code and connect all wires like there?
I'm not sure what the question is... if you're asking whether you will need wires to connect things, of course you will :) If you're asking which wires connect to where on the modules, I repeat again, if you watch all the previous videos first, you wouldn't have these questions.
Hi Chris, Do you know the difference between SIM808 and SIM868 module. thanks
No, sorry
No worries. I am in the process of designing a tracker using SIM808 but I can see SIM868 is cheaper than SIM808 hence my question.
does not send data to server even i change the apn.
As I have said in the video and a dozen times in the comments, start with the previous videos and do this step by step - don't expect to just copy and paste some code without putting in some effort to understand it.
Cool, so it's not a typo in ebay it really has GPS!
Offtopic: have you ever considered using stm32 "blue pill" instead of Arduino? I know it is 3.3v, but performance-wise it beats the living c... out of Arduino.
Sorry found the answer myself in Your videos :) ruclips.net/video/xsYIh1sunso/видео.html
Since making that video I have also used mbed online compiler a little, which is much easier to get things done with. I managed to get it working with a few other STM32 dev boards I have, by selecting a similar board to one of the defaults already available in mbed. I almost made a video about it all, but I have not actually used it for any specific project and I also got a bit lazy.
I have read about that mbed online compiler. Personally I use Eclipse with STM32 plugin and CubeMX official ST configuration tool which generates Eclipse projects. It is a bit cumbersome, but I really like the debugging feature. Huge downside is availability of libraries in such configuration, but it is not that hard to port libraries from Arduino.
I tried to create a new JOURNEY on your server, but it did not work. Can you help me? Thank!
Can you define "did not work" any better? That phrase gives almost nothing to act on.
In the server log I can see recent requests from Vietnam with URLs like this:
"GET /gt/gt2.php? HTTP/1.1"
"GET /gt/gt2.php?&jn=h97p9AT+HTTPACTION=0 HTTP/1.1"
"GET /gt/gt2.php?&jn=h97p9AT+HTTPACTION HTTP/1.1"
"GET /gt/gt2.php?&jn=h97p9AT HTTP/1.1"
"GET /gt/gt2.php? HTTP/1.1"
"GET /gt/gt2.php? HTTP/1.1"
These do not look like my code has been used, did you change anything?
The URL should be something like this:
/gt/gt2.php?&jn=op7qwe86md&tm=20180214092327&fx=1<=17.424515&ln=78.379030&sv=9&ha=0.9&gs=0.48&hd=31.93
Can I get your email? I can show you some pictures. Sorry my english is not good
If we talk here it helps more people in future, not only you. I think I pointed out the problem in my last post - and I also asked a question.
I followed your instructions and only changed "JOURNEY"
//#define JOURNEY "vr978rye7R"
#define JOURNEY "h97p96th97"
and still keep the URL:
GSM_PORT.print("AT+HTTPPARA=\"URL\",\"www.iforce2d.net/gt/gt2.php?");
Are you in the usa? What kind of sim card are you using?
No, New Zealand. I don't know much about sim cards, it's just the one they gave me at the shop :)
oh ok, I was having trouble with network connection with my gsm sim808, but I got it work know. I was using a wrong sim card.. I was using an 4G LTE sim card, and you know sim808 module works only with 2G network
I'm trying to make this project but I'm getting an error: sim808_setup was no declared in this scope.. I looking for the library but can't find no where
??? the file sim808.h is in my download zip, linked to in the description....
There is no include for anywhere in my code, maybe you changed that? It should be:
#include "sim808.h"
(not with angle brackets, because that has a different meaning!)
:) I was looking the wrong code lol sorry. thank you for your help
Happy New Year bro. I want to ask you can u fix the link for Arduino sketch, because the link dont work. Thanks in advance
My entire server is down right now because my hosting company fucked something up really bad a few days ago, they still haven't managed to fix it. I'll let you know when it's up again.
@@iforce2d Ok, bro. If u want you can link some dropbox because i will want to try with sim868. Thanks in advance
Site is up again now.
Hi, bro I have problem.
Starting...
Waiting for SIM startup...AT+CGNSPWR=1
Ignoring echo: AT+CGNSPWR=1
OK
AT+SAPBR=3,1,"APN","gprswap"
Ignoring echo: gprswap"
ERROR
AT+SAPBR=1,1
Ignoring echo: AT+SAPBR=1,1
ERROR
AT+HTTPINIT
Ignoring echo: AT+HTTPINIT
ERROR
AT+HTTPPARA="CID",1
Ignoring echo:
ERROR
AT+CGNSPWR=1
Ignoring echo: AT+CGNSPWR=1
OK
AT+CGNSINF
Ignoring echo: AT+CGNSINF
+CGNSINF:Checking message type: +CGNSINF:
Received CGNSINF
1,CGNSINF result for is 7 is 1,
1,CGNSINF result for is 8 is 1,
20191014223055.000,CGNSINF result for is 9 is 20191014223055.000,
43.981878,CGNSINF result for is 10 is 43.001878,
21.249951,CGNSINF result for is 11 is 21.009951,
128.632,CGNSINF result for is 12 is 128.632,
0.00,CGNSINF result for is 13 is 0.00,
300.9,CGNSINF result for is 14 is 300.9,
2,CGNSINF result for is 15 is 2,
,CGNSINF result for is 16 is ,
1.1,CGNSINF result for is 17 is 1.1,
1.4,CGNSINF result for is 18 is 1.4,
0.9,CGNSINF result for is 19 is 0.9,
,CGNSINF result for is 20 is ,
10,CGNSINF result for is 21 is 10,
8,CGNSINF result for is 22 is 8,
,CGNSINF result for is 23 is ,
,CGNSINF result for is 24 is ,
33,CGNSINF result for is 25 is 33,
,CGNSINF result for is 26 is ,
PS_CGNSINF_VPA is
GPS state: 20191014223055, 1, 8 sats, hdop 1.1, 43.001878, 21.009951, 0.00 km/h, 300.9 degrees
OK
For my mobile network I found this parameters.
Please can u help me?
phone settings of postpaid:
APN = gprswap
Username = mts
Password = 064
Homepage: m.mondo.rs
or postpaid mobile net:
APN = 3gnet
Username = mts
Password = 064
What is the name of this battery?
That's a lipo battery. But anything that can provide 5V or more and 10W will be ok.
@@iforce2d thank you!
What is the name of this arduino?
I want buy it.
How much does it cost?
Hey Iforce2D,
I’ve checked my journey code, and it shows as available... that is, until I power on my Arduino/SIM808 and get it connected. Then the journey code reads as taken on the server - so far, so good. This means there is communication between my Arduino, the GSM, and the server. However, no data points appear on the map! Any idea the reasoning for this?
Thanks for the help!
Sorry about that, try again now. Somehow a few lines of my PHP had disappeared, absolutely no clue how that happened, since I have not touched or even looked at that code since I uploaded the video, when it was clearly working fine. Thanks for the heads up.
iforce2d *Crosses fingers*
*Crosses everything I can*
*Plugs in arduino*
iforce2d And look at that, it works! Amazing! Thanks for the help, couldn’t have done it without you and these tutorials!
WHERE IS your test.php file
The directions for using my webserver are in the previous video, link is in the description.
sir please send me your email address
miniturise it and put it into quads !!! :)
Would it be possible to add a baro sensor to record heights?
WannaDuino if you spam that shit again you get banned.
Your www.iforce2d.net links are broken.
Thanks!! Links ON again.
hello friend, excellent video I just want to know something how you get the user's data and your api page you used to show them? If you can upload the code I would appreciate it and subscribe to your channel.
User's data.... you mean the user manual? It's linked to from the banggood page: files.banggood.com/2016/06/SKU405361-SIM808.rar
The code is linked to in the description, take a look.
I mean how do you acquire the data on your page? with a simple Get? How do you sample the data in the Google API? I want to see the Code of your PHP page
Spanish😭