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
369 views
in Vehicle tracking by anonymous
We have tens of FMC001 devices which we use to send signals to our server to track cars.

Initially we were using UDP because it is faster and it sends IMEI (something we absolutely need to know which device is talking to our server) on every signal. But obviously the UDP is not reliable, and since we increased a number of our drivers a lot of packets are lost etc so we don't see it as an option anymore.

Now we want to use TCP because of it's reliability. The problem with UDP is that it doesn't send imei on every signal so how on earth we are supposed to detect which device is talking to our server?

We are using Nodejs and MySQL.

Thanks in advance.

1 Answer

0 votes
by anonymous

Hello

Please refer to Teltonika Wiki for protocol description:

https://wiki.teltonika-gps.com/view/Teltonika_Data_Sending_Protocols#Codec_8

When using TCP protocol, device sends its IMEI when opening connection with the server. First, when the module connects to the server, the module sends its IMEI. First comes a short identifying the number of bytes written and then goes IMEI as text (bytes).
For example, IMEI 356307042441013 would be sent as 000F333536333037303432343431303133. Having devcie IMEI you can verify from which IP it comes.

Regards