FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

4167 questions

4739 answers

3460 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
651 views
in Vehicle tracking by anonymous

hi, i would like to read data from ROM TELTONIKA FMB204 on my local machine using python, I puted my IP server and port in TELTONIKA i used the last python script : 

How to read data from Teltonika FMB001 with a python script

I started the python script  it works but I got no data on the screen

"[STARTING] server is starting...

server is listening ..." 

this is my first time parsing data from TELTONIKA could anyone help me how to get started? 

1 Answer

0 votes
by anonymous

Hi Alex,

Good day! First, when module connects to server, module sends its IMEI. First comes short identifying number of bytes written and then goes IMEI as text (bytes).

For example, IMEI 356307042441013 would be sent as 000F333536333037303432343431303133.

First two bytes denote IMEI length. In this case 0x000F means, that IMEI is 15 bytes long.

After receiving IMEI, server should determine if it would accept data from this module. If yes, server will reply to module 01, if not - 00. Note that confirmation should be sent as binary packet. I.e. 1 byte 0x01 or 0x00.

Then module starts to send first AVL data packet. After server receives packet and parses it, server must report to module number of data received as integer (four bytes).

If sent data number and reported by server doesn’t match module resends sent data.

For more information you may refer on this link: https://wiki.teltonika-gps.com/view/Codec

Hope this helps!