OpenGTS open-source solution for vehicle tracking

Introduction


48 hours or more, many don't even know how you can spend so much time behind the wheel. Of course, they realize that there are such professions as truck driver, trucker, but I assume, didn't even think about what a long road and like to spend time behind the wheel.
I love to travel and love my motorcycle. There was a time when I could during the day to travel up to 1000 km Is a lot even for a country like Russia.

The first thing you should consider the person who goes very far to own transport is security. In a long journey, anything can happen: accidents, breakdowns, sudden health problems, and just might run out of gasoline. You know, even if you Ala lone wolf, there are people who care about you, who thinks and worries about you.

It is about the solution that allows you to track vehicles in real time we'll talk today.

Solution


OpenGTS ("Open GPS Tracking System") is the first open source solution designed specifically for vehicle monitoring in web browsers using data from the GPS receivers.
looks something like this:
image

solution Architecture


image
In the image above, schematically shows the architecture of OpenGTS. The various device communication servers (the modules which receive GPS data from different devices) run as separate Java processes. Track servlet is responsible for the web interface, as well as other servlets (including http-based device communication server), run on the application server, known as Apache Tomcat.
the Http-based communication server

We consider a simple data transfer from the client to the server, based on HTTP GET requests (http-based devices). For these purposes, the server connects to the servlet “gprmc”. Installing and running Tomcat in open access at the following URL:
http://opengts.mechsoft.ru:8080/gprmc/Data
All arguments for the URL listed in the documentation, but we consider a simple test query to the server:
http://opengts.mechsoft.ru:8080/gprmc/Data?acct=...&dev=...&gprmc=...
The server's response below tells us that the data was successfully uploaded:
the
<html>
<head>
</head>
<body>
<pre>OK </pre>
</body>
</html>

Let us examine the arguments of the query:
acct – the account ID for which to be transmission of data;
dev – ID of the vehicle that is registered to your account;
gprmc – string format NMEA-0183, which contains the data from the GPS receiver.

Mobile client

For http-based servlet, created a simple mobile client for the Android platform. As shown above, the task of the client to poll the server using a properly formatted HTTP GET requests.

A program that can do it – GPS2OpenGTS. Appearance Spartan. The main screen displays information about the coordinates, number of satellites, speed and direction of movement, the name of the server on which slutsa HTTP GET requests and their intensity.
image

How it looks


Included GPS receiver is very power hungry, so the battery of the mobile device can quickly sit down. Before departure it is recommended to think about charging your mobile device on the way. In my case I used a regular cable for car cigarette lighter. I brought the cigarette lighter on the bike yourself. It turned out very functional:
image
I used OpenGTS on my server when I was travelling from Moscow (Russia) to Nord KAP (Norway) through Finland.
I wonder how I was going? This data is available. You can connect to the server http://opengts.mechsoft.ru:8080/track/Track using an account:
the Account: public the User: guest the Password: guest
then, in the upper — right corner of the window you should choose the dates:
the the
From: 12 August 2011
To: 18 August 2011

And click on the “Update”button.

concluding remarks


Moving along the roads, I can say for sure that there are a lot of people who travel. Nice to see cars with numbers from other regions of the country, different about than where to go, and if it will be a rider so need to arrange the next gas station. Travel...
Cons:
the
    the
  • you Must have your server accessible via Internet, to install OpenGTS;
  • the
  • you Must be connected to the Internet on mobile devices (in terms of roaming, it may be expensive).

Pros:
the
    the
  • Free software.
  • the
  • you Can track multiple vehicles, combining them into a group;
  • the
  • Reports on the movement of registered vehicles;
  • the
  • Huge range of GPS devices that can be used for data collection.
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

Integration of PostgreSQL with MS SQL Server for those who want faster and deeper

Custom database queries in MODx Revolution

Google Web Mercator: a mixed coordinate system