Good afternoon, please help me, tell me how I can convert Hexadecimal CC-08-9E-82 and that its conversion is this coordinate -871850366
Convert Hex
- Edited
Hello LeonidasMorales ,
Big endian hexadecimal value CC089E82 represented as signed 4 bytes integer is -871850366. To understand this you need to be familiar with 2's complement.
And in this article you may find out how to receive Longitude value in degrees from the integer value -871850366.
Alternatively, you may use flespi to connect your Teltonika devices and have no worries about these difficulties.
namo Thanks a lot. I will check
Hi namo i have the same question and i want to parse it to degrees fallowing https://flespi.com/kb/teltonika-device-data-via-api documentation but wich values are deg, min, sec and millsec in this value -871850366?
Hello RichardAguirre ,
The article you refer to describes how to connect your Teltonika device to flespi channel, and receive parsed JSON messages from flespi API. The messages will contain position.latitude and position.longitude parameters parsed from binary Teltonika packets and represented in degrees for your convenience:
"position.latitude": 54.6872,
"position.longitude": 25.2797,
You won't need to worry about how the parse degrees, minutes, seconds from -871850366 any more.