Git Product home page Git Product logo

tk102-gps-data-parser-nodejs-server's Introduction

TK102 GPS PARSER & NODE SERVER

Listen,receive and parse GPS data from TK102 trackers

Tk102 is a gps tracker which gives accurate co-ordinates. It can post the data through SMS or even through internet via configured host and port. Here we are presenting a node server which listens to a port, parses the GPRMC data.
Post processing, you can either store it in a database or can post the data to any web service.

Usage

Step 1: Install npm
Step 2: Install nodejs
//Make sure mysql module is available in node_modules Step 3: Running the application
$ node reachtoday_updatedatabase.js
//run reachtoday_updateservice.js if you want to post the data to a service

you should see the below output

TK102 TCP GPRS Gateway v0.1-dev
Loading...
Setting up mysql connection..
Setting up tk102 interface..
This port is listening...

Testing the application

Make sure the server is running. Now run testclient.js
$ node testclient.js
If you are using reachtoday_updatedatabase.js
make sure the database name, table name with correct columns are available
If you are using reachtoday_updateservice.js, make sure the service is running on the specified host

Here we have provided the tk102 tracker setup commands for ip routing from tk102 tracker to a listening port.

Commands for TK102 GPS Tracker

======================================= After installing the simcard
// Place the simcard in the simcard slot. Step 1: Check the signal and activate tk102 tracker with the commands below:
Send the Message from your mobile to the inserted sim number (called as tk102-sim from now on...)
Message: begin123456
123456 is pin:can be any six digit number which you can remember. Here we are using 123456 to make things easy :)
Response:begin Ok!
This response says your gps device is working fine

Step 2: Call the gps tracker (tk102-sim) for 5 times, then your number will become trusted number for receiving SOS or any gps co-ordinate messages on your mobile
Note: Maximum 5 numbers can be added to the trusted group

Step 3: Set up apn
Different networks have different apn. If you are in India, for example:
apn for airtel: airtelgprs.com
apn for bsnl: bsnlnet
Send a message to tk102-sim from your trusted mobile number as shown below:
Message: apn123456 bsnlnet
Response: apnOK!

Step 4: Check GPRS status of the device, Send a message:
Message: GPRS123456
Response: GPRS OK

Step 5: Setup the IP and port on which our node-server is listening. Remember you can only configure an IP. You cannot configure any domain on this version of gps-tracker.
Send a message as shown below to configure IP address and port number:
Message: adminip123456 IPAddress port-number
Response :ADMINIP OK

Now if you see in your console of our node-server, you should be able to see the parsed data in the console.

tk102-gps-data-parser-nodejs-server's People

Contributors

anupama513 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.