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
307 views
in Vehicle tracking by anonymous

Hello,

How can I determine the device IMEI when receive the data,

I have to determine the IMEI for saving data correctly in the DB, I already check at https://wiki.teltonika-gps.com/view/Codec , but no info for this case.

I am getting the IMEI from the first packet, then my response to get data, but when get the data after that it's coming without IMEI, so I can't determine the device that I should save the parsed data for it.

FYI, I have 28 protocol are sending data for the same socket and each one return the IMEI with packet, that what letting me determine each device and link the data with it after parsing.

1 Answer

0 votes
by anonymous
Hello.

AVL data packet does not contain device IMEI when using TCP protocol.

If you need IMEI to be included in each data packet please use UDP protocol.

Regards