Teltonika is one of the leaders on Europeam market for HW devices used for vehicle telematics. Their devices are pretty nice and quite performant.
This library represents an opensource implementation for encoding/decoding Teltonika CODEC8, CODEC8ex and CODEC12.
Because this library is generic, the output won't contain the result fully decoded and will perform the mapping between the AVL ID and the hexadecimal value of the parameter. For example for FMC130 if you will have in your map the element 81: "3C", this means that the speed from CAN bus is 60 km/h, and you should converted to decimal.
The common values for all devices, are fully converted. Those values are:
- timestamp: Long
- priority: Short
- geoHash: String (the geoHash is actually internally converted from lat/lon pair by the library).
- altitude: Int
- angle: Int
- satellites: Int
- gpsSpeed: Int
- eventId: Int
Gradle:
implementation("eu.aagsolutions.telematics:teltonika-codec:0.1.0")
Maven:
<dependency>
<groupId>eu.aagsolutions.telematics</groupId>
<artifactId>teltonika-codec</artifactId>
<version>0.1.0</version>
</dependency>
For a complete example please have a look to following demo project using TCP/IP sockets: Teltonika demo TCP/IP server