All Projects → uro → teltonika-fm-parser

uro / teltonika-fm-parser

Licence: Unlicense License
Teltonika fm xxxx protocol encoder and decoder

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to teltonika-fm-parser

Phone Tracker
Phone tracker is an Android library to gather environment signals, like cell towers, wifi access points and gps locations.
Stars: ✭ 102 (+126.67%)
Mutual labels:  tracker, gps
SnorkTracker
GPS IoT tracker board for scanning gps and environment information and sending this to a MQTT server via GPRS.
Stars: ✭ 38 (-15.56%)
Mutual labels:  tracker, gps
JT808Platform
简单的JT808车辆监控平台
Stars: ✭ 97 (+115.56%)
Mutual labels:  tracker, gps
Disco4g
4G/LTE softmod for the Parrot Disco
Stars: ✭ 273 (+506.67%)
Mutual labels:  tracker, gps
Ttgo T Beam Car Tracker
TTGO-T-Beam Arduino Car Tracker - ESP32 + LoRa + GPS + GSM (optional)
Stars: ✭ 106 (+135.56%)
Mutual labels:  tracker, gps
beboptwo4g
4G/LTE softmod for the Parrot Bebop 2
Stars: ✭ 50 (+11.11%)
Mutual labels:  tracker, gps
pyubx2
Python library for parsing and generating UBX GPS/GNSS protocol messages.
Stars: ✭ 49 (+8.89%)
Mutual labels:  gps, gps-library
CoronaTracker
A full stack framework to trace possible close-contact candidates within last specified days for an already detected covid-19 positive patient
Stars: ✭ 13 (-71.11%)
Mutual labels:  gps
pluto-gps-sim
PLUTO-GPS-SIM generates a GPS baseband signal IQ data stream, which is then transmitted by the software-defined radio (SDR) platform ADALM-Pluto.
Stars: ✭ 74 (+64.44%)
Mutual labels:  gps
spider
A powful outdoor GPS track editor
Stars: ✭ 15 (-66.67%)
Mutual labels:  gps
Covid19LiveTrackerApp
This covi19 (CORONA) Live Tracker and Awareness App
Stars: ✭ 44 (-2.22%)
Mutual labels:  tracker
egts-protocol
EGTS protocol receiver write on Golang
Stars: ✭ 29 (-35.56%)
Mutual labels:  gps
privtracker
Private BitTorrent tracker generator
Stars: ✭ 84 (+86.67%)
Mutual labels:  tracker
opendlv
OpenDLV - A modern microservice-based software ecosystem powered by libcluon to make vehicles autonomous.
Stars: ✭ 67 (+48.89%)
Mutual labels:  gps
RouteDirectionMap
an android application that draws a possible google map route between two points. We’ll be using Google Maps Directions API in our application.
Stars: ✭ 17 (-62.22%)
Mutual labels:  gps
meteor-server-autorun
Server-side Tracker.autorun
Stars: ✭ 36 (-20%)
Mutual labels:  tracker
zeldaPlay
A Single Page Application to help zeldaPlay players to track their characters and progress
Stars: ✭ 95 (+111.11%)
Mutual labels:  tracker
addon-traccar
Traccar - Home Assistant Community Add-ons
Stars: ✭ 65 (+44.44%)
Mutual labels:  gps
react-native-device-country
Get device location by telephony (SIM card) or settings without using GPS tracker.
Stars: ✭ 33 (-26.67%)
Mutual labels:  gps
libxm
A small XM (FastTracker II Extended Module) player library.
Stars: ✭ 94 (+108.89%)
Mutual labels:  tracker

Teltonika FM-XXXX Parser

Build Status Scrutinizer Code Quality CodeFactor Latest Stable Version Total Downloads

This repository is object oriented library to translate Teltonika protocols.

You could use this library in your server, it will help you talk with Teltonika devices.

It was build with Teltonika protocols v2.10 documentation.

Requirements:

{
    "require": {
        "php": ">=7.0"
    },
    "require-dev": {
        "phpunit/phpunit": "^5.7"
    }
}

Usage:

$parser = new FmParser('tcp');

// Decode IMEI
$imei = $parser->decodeImei($payload);

// Decode Data Packet
$packet = $parser->decodeData($payload);

Examples

TCP

	$parser = new FmParser('tcp');
	$socket = stream_socket_server("tcp://0.0.0.0:8043", $errno, $errstr);
	if (!$socket) {
		throw new \Exception("$errstr ($errno)");
	} else {
		while ($conn = stream_socket_accept($socket)) {

			// Read IMEI
			$payload = fread($conn, 1024);
			$imei = $parser->decodeImei($payload);

			// Accept packet
			fwrite($conn, Reply::accept());

			// Decline packet
			// fwrite($conn, Reply::reject());
			
			// Read Data
			$payload = fread($conn, 1024);
			$packet = $parser->decodeData($payload);

			// Send acknowledge
			fwrite($conn, $parser->encodeAcknowledge($packet));

			// Close connection
			fclose($conn);
		}

		fclose($socket);
	}
}

License:

Public domain

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].