Python based tcp server to recieve and control teltonika fmb devices
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
Teltonika FMBXXX server This project is a basic server that gets data from the teltonica devices and prints them its a basic tcp server that can handle multiple clients. Documentation for building a ready made tcp server for controlling/ getting data out of the teltonica trackers was hard for me so i programmed this so that you could build your server off this.
Communication is based on documentation from the teltonika wiki teltonika tcp protocols.
once the tracker is setup with the server ip and port with tcp communication on the configurator. The tracker will open a connection to the server and send its IMEI.
I have also programed and compiled diffrent programs and datasets that can be useful for your application
- msgToCodec12 is a function to convert messages into codec 12. codec 12 is used by the teltonica devices to accept sms/gprs commands
- controlling outputs, getting io information, etc
- all the available commands that the devices support are here msgEncode.py
- inorder to encode the message simply call the msgToCodec12 function with the gprs command
- and you can forward the return result from the above function to the tracker by using conn on main.py and
- codec id
- no of records (this has to be sent back to the tracker as an acknowledgement)
- crc-16 (crc-16/IBM)
- latitude, longitude, altitude, angle, no of satellites, speed
- io data (the input output 1 wire and other sensor information)