Incorrect decoding - Teltonika

Kaloyan Kaneva year ago

Hello to everybody!
I want to share something about Teltonika device and temperature sensors.
In the Teltonika configurator the sensors give correct information: Configurator Realtime Screenshot
In Traccar we see incorrect parsed data: Traccar position
The device is FMB640, if I changing the model to FMB140 or leave it empty..., the data is in negative values but again is incorrect.
In previous versions of Traccar like 5.6, 5.6... everything was normal... are this is some bug (like parsing with negative values) or is need to implement new protocol ?

Anton Tananaeva year ago

Generic IO values are always decoded as unsigned. If those were supposed to be signed values, you have to convert then in computed attributes.

Kaloyan Kaneva year ago

Anton, thank you for the fast replay.
But the problem is Traccar gives the wrong data before to be converted with computed attributes. Both unsigned / converted
We see io72 and io73 as unsigned. The difference between this sensors is only one. The io73 is negative value, in the freezer is -8.5 degrees
With this value, Traccar showing 65337 !
If I change the model of device (for example FMB140) this value going as -122393

Anton Tananaeva year ago

Do you have IO documentation for your device?

Anton Tananaeva year ago

By the way, what makes you think 65337 is the wrong data?

Kaloyan Kaneva year ago

FMB640 Teltonika Data Sending Parameters ID
The parameters 72 and 73 is absolutely equal