Driver id on positions table

Vitor Reis5 years ago

Hi, Anton,

Does the position table stores the data from the driver id (the number that comes from the iButton)?

And, if it does where it's supossed to be?

Best regards,

Vitor.

Anton Tananaev5 years ago

Yes, in attributes.

Vitor Reis5 years ago

Alright, but it seams to not be working. The log bellow shows the number of the ibutton id (012E717F010000):

2019-02-27 23:59:34  INFO: [68ede89b: 5011 < 177.79.226.108] HEX: 53543330305354543b3930373133313037373b30343b3730363b32303139303232373b32333a35393a33343b63633731393b2d31322e3936333439303b2d3033382e3439393538373b3030302e3036373b3030302e30303b373b313b35373039353b31322e35303b3030303030303b313b303333373b3030303230373b302e303b313b303b30313245373137463031303030303b310d
ST300STT;907131077;04;706;20190227;23:59:34;cc719;-12.963490;-038.499587;000.067;000.00;7;1;57095;12.50;000000;1;0337;000207;0.0;1;0;012E717F010000;1

And for the same log the attribute is the followig:

{"type":"STT","versionFw":"706","sat":7,"odometer":57095,"power":12.5,"ignition":false,"in1":false,"in2":false,"in3":false,"out1":false,"out2":false,"index":337,"distance":0.24,"totalDistance":81998.7,"motion":true,"hours":24546000}

Why would the ibutton id appear on log but not on the attribute table?

Thank you for your help!

Best regards,

Vitor.

Anton Tananaev5 years ago

Probably because it's not decoded.

Vitor Reis5 years ago

Do you have any idea how can I fix it?

Anton Tananaev5 years ago
Vitor Reis5 years ago

Sorry, but I din't really understand the suggestion. Should I recompile the source code with any modification?

Anton Tananaev5 years ago

No, you need to configure parameters in the config file.

Vitor Reis5 years ago

When I looked into the config about drivers I only found information about the database drivers.

database.driverFile config

Path to the database driver JAR file. Traccar includes drivers for MySQL, PostgreSQL and H2 databases. If you use one of those, you don't need to specify this parameter.
database.driver config

Database driver Java class. For H2 use 'org.h2.Driver'. MySQL driver class name is 'com.mysql.jdbc.Driver'.

Can you point out the config you're talking about? Please

Anton Tananaev5 years ago

There is no documentation for the parameters. That's why I pointed you to the source code.