You can use attribute copying to copy ignition value over if it's not present in some device reports.
Just to be clear do you mean to write in traccar.xml and set
<entry key="processing.copyAttributes.enable">true</entry>
<entry key="processing.copyAttributes">ignition</entry>
?
But the GTIGN, and GTIGF do not contain the ignition status they contain the time on or off. In this case, will Traccar recognize this messages as ignition events?
GTINF should contain ignition status.
I will check it, thank you....please Anton, .just for a future case, because i did not know about copy attributes, to enable the copy attributes should i set in traccar.xml this two lines or i am wrong?
<entry key="processing.copyAttributes.enable">true</entry>
<entry key="processing.copyAttributes">ignition</entry>
Yes, your config is correct.
Hello Anton,
you are right, the GTINF contains the ignition status and this message is decoded by the server, but the server does not register the ignition event......... i thought that each time that traccar detects the GTINF message and the new incomming message changes the ignition status, traccar should trigger an ignition event, have you any advice?
Besides in my traccar.xml have i written:
<entry key="processing.copyAttributes.enable">true</entry>
<entry key="processing.copyAttributes">ignition</entry>
Do you see ignition value in every record in Traccar?
Yes, i see it , i get
2b524553503a4754494e462c3034303930302c3836313037343032333734373134332c67763230302c32312c38393539333031303030363438363337353536662c32372c302c312c302c312c342e342c302c312c302c302c32303137303932373232303831302c302c30312c30302c2d303530302c312c32303137303932373138303831312c3231393924
and decoded
+RESP:GTINF,040900,861074023747143,gv200,21,8959301000648637556f,27,0,1,0,1,4.4,0,1,0,0,20170927220810,0,01,00,-0500,1,20170927180811,2199$
The ignition value is 21, this value is after gv200 when the ignition is on and i get 16 when the ignition is off.
I am not asking about data that is coming from device. I am asking if you see it in Traccar. If you get a Route report for say last day, do you see ignition in every position?
Yes, i see it in the route report, in "state" is the number 21, and "ignition" = yes , but when the state =11 (ignition off) , in the column "ignition" is empty
If it's always the same value, you won't get any notification obviously. Notification is sent only when ignition value changes.
Yes, it changes only the state column, the values are 11, and 21, when the state = 11 then the ignition column is empty. When the state =21, then the ignition column is "yes"
It means attributes copying isn't working. It should NEVER be empty. Have you restarted server after changing config? What version are you using?
Yes i have restarted the server, my version is the 3.14
Hello Anton,
I would like to be able to report the ignition events for the device GV200. I read how traccar registers the ignition event, and yes the GV200 protocol does not report ignition status in each position, but gv200 generates the message GTIGN and GTIGF for each time that the ignition goes on and off respectively. Is it any way to relate this messages with the IGNITION ON and OFF events? or it is goes against the concept how to traccar register those events?. Can you please give some advice to do it?
Thanks in advance