Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

EGTS (Era Glonass Telematics Standard) parsing via Golang

License

NotificationsYou must be signed in to change notification settings

LdDl/go-egts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EGTS (Era Glonass Telematics Standard) parsing via Golang

Table of Contents

About

This package provides parser for EGTS packets.

What is EGTS? This abbreviation stand for Era Glonass Telematics Standard.

This is standart protocol (over TCP) for Russian global navigation system. You can read description about it here:https://docs.cntd.ru/document/1200095098 (it's on Russian obviously).

You can checkdocs_rus folder for deailed workflow of packet sample.

PR's are welcome!

Installation

Simple.

go get github.com/LdDl/go-egts

Usage

Seecmd directory of this library for examples.

  • Start server

    go run cmd/egts_server/main.go
  • Start client

    go run cmd/egts_client/main.go

After you start both server and client, you should see something like this

  • client side

    go run egts_client/main.go2021/12/16 21:18:15 Response code: {0 0      0 0 0 0 0 0 0 0 0<nil> 0 0}2021/12/16 21:18:15 Packet: {1 0 00 11 0 00 0 11 0 16 1 0 0 0 0 245 0xc0000040c0 4587 0}
  • server side

    go run egts_server/main.go2021/12/16 21:18:08 Accept connection on port 80812021/12/16 21:18:15 Calling handleConnectionfor remote address: [::1]:508402021/12/16 21:18:15 PosData is:        OID: 825791382| Longitude: 48.362186| Latitude: 54.287315| Time: 2021-12-16 21:18:15.1412741 +0300 MSK m=+7.0369388012021/12/16 21:18:15 Result code has been sent to'[::1]:50840'

Tests

Run following command for testing library:

gotest ./egts/packet_test/gotest ./egts/subrecord_test/

Support

If you have troubles or questions pleaseopen an issue.

License

It's MIT. You can check ithere


[8]ページ先頭

©2009-2025 Movatter.jp