How are io stored in the database in new Traccar version (4.5) for Teltonika and Aplicom protocols ?

Elami6 years ago

Hi,

I would like to update my current version of Traccar (4.3) to a newer one (4.5).
I have a question regarding the Teltonika and Aplicom protocols.

Does Traccar change its way of handling data for the Teltonika and Aplicom in 4.5 ?
To be more clear, does Traccar change how it stores the « io » in the database from 4.3 to 4.5 ?

I came accross a similar issue when I updated from 3.15 to 4.1.
Io80 changed to « workMode ». Before, in the attribute column, it was stored as "io80" (eg, there was "io80=1").
Now it's stored as "workMode"(eg, "workMode=1")

This time (from 4.3 to 4.5) there are the following changes for Teltonika :

In traccar 4.3 :
TeltonikaProtocolDecoder.java

            case 72:
                position.set(Position.PREFIX_TEMP + 1, readValue(buf, length, true) * 0.1);
                break;
            case 73:
                position.set(Position.PREFIX_TEMP + 2, readValue(buf, length, true) * 0.1);
                break;
            case 74:
                position.set(Position.PREFIX_TEMP + 3, readValue(buf, length, true) * 0.1);
                break;

In traccar 4.5 :
TeltonikaProtocolDecoder.java

            case 74:
                position.set(Position.PREFIX_TEMP + (id - 71), readValue(buf, length, true) * 0.1);
                break;

Another change in 4.5 :
TeltonikaProtocolDecoder.java

            case 28:
                position.set(Position.PREFIX_TEMP + (id - 24), readValue(buf, length, true) * 0.1);
                break; 

I would like to know if the name of the attributes will change in the database, and if that's the case, what the name of attribute will now be instead of io72, io73 and io74 ?
Same question with io28.

I also checked the commits in Github but didn't find anything about this.

Thank you !

Elami6 years ago

After some testing, I found out that the only thing that changed in the database is the attribute name "io28" that changed to "temp_4" and the value just got divided by 10.

About the io72,io73 and io74, it was just cosmetic and it didn't change anything in the database.

The thread can be closed.