Website Hosting for Just 20 ForumCoin ~ Advertise on ForumCoin
ForumCoin is an online community where you earn ForumCoin for making posts and for referring other members. You can use the ForumCoin virtual currency to buy and sell goods and services and to exchange for traditional currencies. Find out more!
Get paid up to 150 ForumCoin to submit your article.

Track your vehicle! (EASY!!! Traccar guide)

Postby Sam » 26 Apr 2017, 22:57

In New Zealand there are nearly 50,000 motor vehicle thefts every year and unfortunately, one of the most popular models stolen is my car: the Subaru Legacy. But- car alarms are expensive and of no guarantee to prevent car theft so I decided to look into GPS tracking devices. Sure... my car could be stolen but at least I'll have a fair idea where it ends up and it would give the police -at minimum- solid information on who stole it.

This guide aims to be comprehensive and beginner friendly.

You should end up with something like:
Image


Ingredients List :lol:
  • A Vehicle GPS tracking device. I purchased the OBD II. There are other good options. Some are battery powered and others plug into different ports in your car. This guide will be based on the OBD II but it should be easy to alter to setup other trackers. If you have an older car (like very very old) you may need to check for alternatives.
  • A VPS (with good uptime and 256mb of ram or more). I have mine running on a 128mb ram VPS from BuyVM but it may need upgrading (Java is memory hungry).
  • A SIM card (one of the old big fat ones - most likely- that runs on 2G). You will need 300mb of data (per month) and a decent number of texts.
  • Putty client.




Setting up the VPS.

1. My recommendation is to use a Ubuntu 16.x 32bit template (if it is not an option under when purchasing your VPS, you may be able to reinstall in your VPS's control panel). You can use other Ubunutu releases (or other linux releases for that matter), just ensure the correct Java version is available.

2. Login to your VPS using Putty (using root and your password). It would probably be a good idea to point out that using "root" as a login is a seriously bad idea... (setup a Sudo user and disable root!!)



Notes with the following commands...


Putty allows right-click pasting. You can also use Ctrl C to copy as well.

If you are given a command not found error, you may not have the package installed. Simply running:
Code: Select all
apt-get install
packagename should fix this... e.g.
Code: Select all
apt-get install unzip
.

Preference all commands with sudoif you are not logged in as root.

3. Run these commands:

The template will be out-of-date... we need to get the latest updates. Run.=
Code: Select all
apt-get update


We need Java! (specifically 7 +)
Code: Select all
apt-get install default-jre


Code: Select all
java –version
- this will let you check your version!

Download and unzip Traccar...

Code: Select all
mkdir /traccartemp
- temp directory
Code: Select all
cd /traccartemp
- navigate into this directory (cd by itself will navigate up).

Code: Select all
wget https://sourceforge.net/projects/traccar/files/traccar-linux-3.11.zip/download
The latest downloads are here: https://sourceforge.net/projects/traccar/files/. You can copy the link for the latest linux version and wget it.

Code: Select all
ls
- we need to list whats in the directory to know what to unzip...

Code: Select all
unzip download
- yours may be different based on ^

install...
Code: Select all
/traccartemp/traccar.run


run....
Code: Select all
/opt/traccar/bin/startDaemon.sh
- this is for the latest Traccar version...

4. You should now be able to login to Traccar. Navigate to:
Code: Select all
yourIPAddress:8082
and login using "admin" for both the username and password. This should obviously be changed in the settings on the page.

Add your device by clicking the + button:
Image

The identifier is the IMEI number of the tracking device. For the OBDII, it is a little different, being the last 11 digits preceded by a "0".




Setting up the Tracker.

1. The sim card should slot nicely into the device. If it doesn't... you'll probably be like me wondering (in sadness) why your car won't reply to your texts!
Image

(note... if you were given a power supply cable with your device, save step 2 until the end and just plug it in).
2. The OBD II plugs into the OBD port (the diagnostics port of your car). Here's a website to help you find it.
Image

3. Unfortunately for me, my tracker did not come with a cable for power. So... the car had to be running for me to run commands (perhaps include this step in a daily errand?).
Have a conversation with your device! Your device's manual should give you commands to run... (you might wish to change some of the default settings e.g. the interval between updates).
Image

Text the following...

Set the admin phone number.
Code: Select all
710#yourmobilenumber#

Replies --->ADD admin account 1 OK!

Set the APN - this is the data APN specific to your SIM. A quick google search or asking your provider should reveal this. Mine was "warehouse".
Code: Select all
820#APN#


Set your IP and port. The port is dependent on your device. It basically sets up a protocol for the device to communicate with the server. With Chinese devices... there are a number of possible ports so try these: https://www.traccar.org/ports-for-tk-gt ... s-devices/. :/

Code: Select all
803#VPSIPADDRESS#5002#


At any time you wish to see the location of your Car/ Vehicle:
Code: Select all
666#




Not working?

You can attempt to manually identify the port... Check the log file by running:
Code: Select all
less /opt/traccar/logs/tracker-server.log

Press q to exit.

If there is a protocol issue... copy the long code into this HEX decoder and try to determine which device it matches from here: https://raw.githubusercontent.com/tanan ... gration.py.

If you see something like the following, you haven't set your identifier correctly.
Image

If there is nothing in the server log (i.e. no attempt at communication), there may be something wrong with the settings on your tracking device (e.g. APN, IP).
Use the code:

Code: Select all
886#
to double check.





Any questions, feel free to comment below!




A big thanks to baZzz as well as Anton Tananaev, founder of Traccar.

https://www.traccar.org/quick-start/
https://www.traccar.org/linux/
  • 1

User avatar
Sam
 
Posts: 2,079
Location: New Zealand
Referrals: 16
Reputation: 874
ForumCoin: 229

Re: Track your vehicle! (EASY!!! Traccar guide)

Postby Fergal » 27 Apr 2017, 06:55

Thanks for sharing such a detailed and interesting article with us Sam. I heard a few years ago that the Honda Civic is the most stolen car in Ireland, not sure if it is still true.

Approximately how much did it cost you to set everything up for your car tracking? About how much does it cost you per month to maintain it?
  • 1

Author of: 52 Life Tips
User avatar
Fergal
Site Admin
 
Posts: 14,737
Location: Ireland
Reputation: 2980
ForumCoin: 15,401

Re: Track your vehicle! (EASY!!! Traccar guide)

Postby Sam » 27 Apr 2017, 08:48

Fergal wrote:Thanks for sharing such a detailed and interesting article with us Sam. I heard a few years ago that the Honda Civic is the most stolen car in Ireland, not sure if it is still true.

Approximately how much did it cost you to set everything up for your car tracking? About how much does it cost you per month to maintain it?


Apparently that's still true. I think people are surprised by what vehicles are most stolen. Legacy's you would expect... but I read this year that Mazda Demio owners had better watch out :o .

Costs:
- BuyVM VPS: $1.25/month
- SIM: (in NZD) $5 + $5 for text credit (about 5000 texts) and $4/month for data.
- Tracker: $25

So approximately $32 (USD) and $4 (USD)/month. :)
  • 1

User avatar
Sam
 
Posts: 2,079
Location: New Zealand
Referrals: 16
Reputation: 874
ForumCoin: 229

Re: Track your vehicle! (EASY!!! Traccar guide)

Postby ken alto » 27 Apr 2017, 15:14

Thanks for sharing though the whole process is complicated for me. I wish I could understand.
  • 0

ken alto
 
Posts: 430
Reputation: 31
ForumCoin: 423

Re: Track your vehicle! (EASY!!! Traccar guide)

Postby Fergal » 27 Apr 2017, 16:58

Thanks Sam, that really is a very economical solution, certainly much better value than buying any service off the shelf.

Sam wrote:Mazda Demio owners had better watch out

Who'd have thought :)
  • 0

Author of: 52 Life Tips
User avatar
Fergal
Site Admin
 
Posts: 14,737
Location: Ireland
Reputation: 2980
ForumCoin: 15,401

Re: Track your vehicle! (EASY!!! Traccar guide)

Postby Sam » 29 Apr 2017, 08:27

ken alto wrote:Thanks for sharing though the whole process is complicated for me. I wish I could understand.


Feel free to ask questions! I'd be happy to help by answering or pointing you in the right direction. :)

Fergal wrote:Thanks Sam, that really is a very economical solution, certainly much better value than buying any service off the shelf.


I think an off-the - shelf solution was anywhere between $100 and $300 + $10-$20/mo NZD. :) I installed it so that when I contact the insurer (which is 3rd party + fire and theft), they might offer me an OK rate considering its street parking.
  • 1

User avatar
Sam
 
Posts: 2,079
Location: New Zealand
Referrals: 16
Reputation: 874
ForumCoin: 229

Re: Track your vehicle! (EASY!!! Traccar guide)

Postby ceci » 04 May 2017, 07:41

Good information. I think there is a new invented "tag" which can tag and find our lost key , and can "tag" on the car itself, which should be much lower the cost.
I hope the car manufacturer can have the GPS or this kind of tracker come along with the vehicle itself in the future.
  • 0

User avatar
ceci
 
Posts: 11,069
Referrals: 5
Reputation: 458
ForumCoin: 76

Re: Track your vehicle! (EASY!!! Traccar guide)

Postby Sam » 08 May 2017, 22:14

ceci wrote:Good information. I think there is a new invented "tag" which can tag and find our lost key , and can "tag" on the car itself, which should be much lower the cost.


The issue with "tags" is they usually rely on bluetooth i.e. you or someone with the same app/tag must be within a short distance of the vehicle for you to be able to find it. :/
  • 0

User avatar
Sam
 
Posts: 2,079
Location: New Zealand
Referrals: 16
Reputation: 874
ForumCoin: 229



Your Ad Here.

Return to Articles & Tutorials



Who is online

Users browsing this forum: No registered users and 3 guests

cron
Reputation System ©'