- Notifications
You must be signed in to change notification settings - Fork9
EGTS (Era Glonass Telematics Standard) parsing via Golang
License
LdDl/go-egts
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
EGTS (Era Glonass Telematics Standard) parsing via Golang
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!
Simple.
go get github.com/LdDl/go-egts
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'
Run following command for testing library:
gotest ./egts/packet_test/gotest ./egts/subrecord_test/
If you have troubles or questions pleaseopen an issue.
It's MIT. You can check ithere
About
EGTS (Era Glonass Telematics Standard) parsing via Golang