Add protocol in Traccar

Skander3 years ago

Hi, I have traccar 3.10 and i have many data in my Mysql database, i want to add or modify Gt06 protocol, i see that the solution is upgrade traccar to other version but i'm not sure if the database will be lost after upgrading, I use traccar-web-ui from litvak, can you give me a solution to not lose my database?
thx.

Anton Tananaev3 years ago

The custom version from Litvak is not maintained anymore, as far as I know. You can upgrade to the official version, but I'm not sure about the database migration. You would probably have to do it manually and it will require some technical knowledge.

Skander3 years ago

Thx anton, I want to test if the replacement of gt06 decoder file (.jar) in the source code of 3.10 with this him of 3.15 for example then I do the source compilation does it work like that or not?

Anton Tananaev3 years ago

You mean backport the implementation. It won't work if you just replace the file. You would likely have to fix some issues.

Skander3 years ago

Hi Anton, I updated Traccar from 3.10 to 3.17 correctly without losing my Mysql data with the reservation of the Litvak web ui version (with some modifications in the configuration files), all the protocols are updated and exactly the GT06 where find my problem, all the problems are totally solved, I use the litvak version because I have a mobile application programmed to use the RestApi provided by this version.
The version I use is very stable, I added some script to my Ubuntu server to improve the good functioning of Traccar such as:

  • script automatic restart of the application every two hours.
  • script control of sql queries that trigger Traccar worked correctly.
    ...

I have been using Traccar since 2015 with this configuration and I had no problems since the first installation. Thank you for this great app.

Anton Tananaev3 years ago

There are some known security issues with old versions. There are probably also security issues with old dependencies like Jetty. Anyway, it's up to you.