Guanch,
Two "tools you will need:
One:
AT command tester - AT commands are used by every type of Cellular Modem
You use HTTP AT commands to send data to Traccar database
http://m2msupport.net/m2msupport/at-command-for-http-functions-for-remote-server-data-access/
Please see this tutorial, most of the code for the SIM808 is included, including the info on the breakout board used to develop code for the SIM808.
Two:
You can even use the
https://www.elecrow.com/wiki/index.php?title=SIM808_GPRS/GSM%2BGPS_Shield_v1.1
Hi Darren,
I would love to collaborate with you and any one else who wishes to join in. I have in my head a few goals out of this project.
Ok, lets expand on these ideas.
Arduino nano Ebay# 202006276626 £1.78
SIM 808 board (just add sim and antennas) ebay# 382078198824 £13
u.fl gps gsm antenna Ebay #381938901139 £15
So total cost less battery and box £29.78 so easily achieved and if you hunt around you can get the parts cheaper. I have left the cost of the battery and box out as you may want to 3d print your own or incorporate the device into an existing bit of kit. Likewise the battery
It is my understanding that you need the ardunio to sent the AT command to the SIM808 and we know the http protocol format and we know it how the ATAmega chip works means that data sent to will be correct. if it fails that will be down to the SIM808 being a cheap clone.
You may be scratching your head here. the Idea is for the likes of EMT's or rescue volunteers. if the device only beacons ever 5 or 10 min then and the rescue worker needs to report their position the pressing the button will sent out an ad hoc update so the person looking at the map does nor need to wait 5-10 min.
working off the back of #3. A car will be moving faster than a person on foot. having a switch accessible to the user will let them select how frequently they report their position.
this will be a nice to have and make it super easy to configure. The two eBay devices i have have the ability to be programmed from a pc. you create a text file on in there you put in the info for your apn username and password and beacon time. A SD card reader/writer on ebay is £1.50 ebay # 111765536589. the idea here is that you only have to compile the code once onto the arduino all the settings are on the SDcard making changes easy and non technical. as SD cards have a few gig of storage why not put the rest of the storage to good use and let the device write a log to the card that can then be downloaded and put on google maps
As Traccar is open source then it makes sense to have a bit of open source hardware to go with it. Who knows it may become a piece of finished hardware available in the Traccar store.
Feel free to email me. phil@g7oea.co.uk
Phil
Makes perfect sense - it's what I've been doing the last 3 years.
I agree - needs to be cheap - easy to use an arduino to send AT commands.
The SIM808 is only a 2G modem, some countries like where I live will be "sunsetting" the 2G service, 2 of 3 carriers here have already done it.
The Chinese versions that most of you have are 2G, hence why they are cheap.
You're right - battery needs to be good as most folks don't know that as the cellular modem is farther away or has a signal strength issues than it will easily draw 200 - 400 mA of current.
The arduino draws nothing.
From my experience a good GPS antenna is worth it's weight in gold.
The open source Traccar is the easy part.
Hey I'm doing the same here... I'm using the Arduino UNO along with the adafruit fona 808 which is a shield for the Arduino with the SIM808 integrated. My goal is to send SMS text messages from traccar using SMPP protocol to the arduino whenever I want to get the gps position. depending on the command, the gps should sent data for a fix period of time and then turn off the gps antena to save as much battery as possible. once it is done I intend to redesign the PCB layout since it is all open source, to get something much smaller and easier to implement.
SIM5360 is much better than SIM808. Most ppl cannot find HTTP Post or Get for SIM808.
Here you find every type of application note for SIM5360 3G modem
yeah I'll switch to a 3g eventually. in the meantime I'm going to work with what I have at hand.
I found this traccar client sketch for Arduino GPS modules, hope it is useful to someone. I haven't tested it yet.
https://github.com/Limon93/Linkit-ONE-Traccar-Client/blob/master/LinkItOne-Traccar/LinkItOne-Traccar.ino
good afternoon i need help mi friend im military of Mexico and i want to create a usefull electronic prototype with sim808 at least i have an arduino nuno and fona 808 when i sent a msn to the fona i receive a sms with the location in gmaps i want to use traccar but i dont have any idea can you help me
@alejandro morales rendon: if you can send an sms with relevant info (latitude, longitude, ...) it is "only" a question of modifying the "sendsms" part of your code with a "sendHTTP".
I don't own a FONA808 but there must be examples of codes around for it. As long as the data you send is in OsmAnd format it should be recognized by your own Traccar server.
https://www.traccar.org/osmand/
I didn't look into the details but these should give you clues
https://openhomeautomation.net/monitor-data-arduino-fona
https://www.instructables.com/id/How-to-make-a-Mobile-Cellular-Location-Logger-with/
Hey guys, i am Pradeep. I am using SIM868 gps module for tracking. I have done a gps tracker, which can track and send the co-ordinates such as latitude and longitude to the thingspeak cloud. Can anybody help me how to integrate thingspeak with the traccar.
Hi Pradeep,
In my google drive below i have collated some information that may be useful. I am not a programmer and slowly learning how to programe the Arduino. i have the hardware to test the code. There is some sample code if anyone cam tell that it will work or not. At the moment I am having issues connecting to the 808 to set the parameters.
Traccar uses the osmand protocol. so if you are already sending data to an internet location then probably replacing it with the osmand protocol will work. as far as implementing it is it is HTTP address. It is extracting the relative variables ad inserting them into the HTTP sting is the challenge ths i see. the link to the OSMAND protocol is below
https://www.traccar.org/osmand/
https://drive.google.com/drive/folders/1gVxj-FBO2rB-bbW7ya6g3uJ3z42qHe7b?usp=sharing
Hi Folk,
I’ve come back to this after first looking at this thread over a year ago. Has anyone made any progress? I’ve got a working prototype of a device which uses a ATmega1284P, SIM800, NEO 6M. I’ve got it setup to detect when an ignition is running / battery is charging and this influences the update frequency. I have also got the device reporting battery voltage back to Traccar. My biggest issue at the moment is the power requirements of the device. I can reduce the power of the ATmega chip until it’s negligable, the SIM800 module I turn off using a MOSFET when it’s not needed. But the GPS module pulls about 60mA of current, I can’t get it any lower. I’ve tried to get it into various sleep modes but am not certain I’m succeeding as it has little effect on current. I really wanted to get the device to work off a Lipo battery which would mean having the current reduced right down. I can run all the code at 8MHz on the ATmega.
@Ross Pickthall:
You may want to look at the Power Management chapter of this doc: https://www.u-blox.com/sites/default/files/products/documents/u-blox6_ReceiverDescrProtSpec_%28GPS.G6-SW-10018%29_Public.pdf and/or this doc dedicated to NEO-6 power management: https://www.u-blox.com/sites/default/files/products/documents/u6-PowerMgt_AppNote_%28GPS.G6-X-10014%29.pdf
May be you can try disabling all unneeded messages using U-Center (not sure it reduces the power consumption though) and set the eco-mode on if it exists for the 6M.
Otherwise, the NEO-7M and 8M are supposed to be a lot less power hungry (about half that of the 6M): https://www.u-blox.com/sites/default/files/products/documents/PowerManagement_AppNote_%28UBX-13005162%29.pdf
To further reduce power consumption and depending on your set up and requirements, you may want to remove all LED, flash memory, LDO regulator, the button battery if any on the module, ... but you have to know how and why you do any/all of this. I'm taking no responsibility on the result of such butchery.
You're not saying if you can accept waiting a cold start along when powering up the SIM800. If so, you could drive the power of the NEO-6 in the same way you drive that of the SIM800.
Treblig
Thanks Treblig for your response and for the links, I’ll be sure to give those a look over.
I did download the U-Centre software to see if I could use that to configure the device. I didn’t have much luck, I could read all the parameters but couldn’t seem to save anything back to the device. It would download GPS data and seemed to work in that respect. I didn’t have much time when I looked at it so might have another look.
I have already considered “butchering” the module and removing components that aren’t necessary for my application.
I don’t want to be waiting for a fix from a cold start every time I want location data. Ideally I’d like to be able to request location from the GPS unit rather than it constantly sending it to the microcontroller and having to deal with it. Only sending it when needed would also help with power consumption.
Ross
Ross Pickthall, hi, can you share you project? the code of prototipe? i use a arduino nano and sim 800.. THANKS
darreno, show directly here - you will help all at once. :)