Incorrect decoding - Teltonika

Kaloyan Kanev10 months 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 Tananaev10 months 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 Kanev10 months 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 Tananaev10 months ago

Do you have IO documentation for your device?

Anton Tananaev10 months ago

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

Kaloyan Kanev10 months ago

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