Ignition Status

Rodrigo Oliveira4 years ago

I enabled the commands below, but the ignition sometimes works and sometimes not, I don’t always get a message from the tracker (true ignition) when starting the vehicle, I also receive the command (turning on the alarm) that I always get when starting the vehicle , but the ignition command isn't always, sometimes it works and sometimes it doesn't, can you replace the ignition with the powerOn alarm? How would the code syntax please?

<entry key='processing.computedAttributes.enable'>true</entry>
<entry key='processing.engineHours.enable'>true</entry>
<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>power,ignition,battery,hours</entry>
Anton Tananaev4 years ago

You can create a computed attribute for it if you want to always fire alarm when ignition is ON. Expression will look something like this:

ignition ? "powerOn" : null
Rodrigo Oliveira4 years ago

I get the return "NO CONTENT"

Anton Tananaev4 years ago

That means you don't have ignition or it is false.

Rodrigo Oliveira4 years ago

what can i do to fix this?

Rodrigo Oliveira4 years ago

Anton, can you see if it is correct?

Image

Anton Tananaev4 years ago

Looks obviously incorrect. Why are both ON and OFF expressions the same?

Rodrigo Oliveira4 years ago

Anton, I am receiving in the log file, the alarm "acc on" but in tracing it is not notifying, it does not appear in events. It was filtered by the distance filter. What do I do?

2020-10-09 10:55:08  INFO: [81097255: 5001 < 187.119.239.74] HEX: 696d65693a3335393731303034363437343237373c616363206f6e2c3230313030393130353530302c2c462c3133353435382e3030302c412c323333352e373631312c532c30343635332e303932322c572c302e30302c303b
2020-10-09 10:55:08  INFO: Position filtered by Distance filters from device: 35971004647XXXX
Anton Tananaev4 years ago

Disable filtering?

Rodrigo Oliveira4 years ago

But it is possible to create an exception for this event, I would like to continue with this filter, because the acc event is not always what happens if I take it, I will receive a lot of data in the database for the same location.

Anton Tananaev4 years ago

Computed attributes are calculated after filtering, so I don't think it's possible.

Rodrigo Oliveira4 years ago

Anton, I'm sorry to disturb you all the time. But I think I was doing everything wrong. I removed the distance filter and now I normally receive the acc on and acc off attribute.

It is enabled:

<entry key = 'processing.computedAttributes.enable'> true </entry>
<entry key = 'processing.engineHours.enable'> true </entry>
<entry key = 'processing.copyAttributes.enable'> true </entry>
<entry key = 'processing.copyAttributes'> power, ignition, battery, hours </entry>

Do I need to create calculated attributes or is that enough for me to have the ignition status? I realized that the connected hours still don't change.

Rodrigo Oliveira4 years ago

Anton, my ignition status is correct now it is on and off.

What is the difference between these (hours) and (on hours) highlighted in the photo?

Hours

Question: Hours on, does it only count if the car is in motion or if it is parked but on does it count? tested with a vehicle on but parked and does not leave 0h0m.

Another thing, in the travel tab, as you can see in the photo, the total hours (duration) of travel was much more than the 56min shown in the resume tab, what can this difference be?

Hours travels tab

you could explain how (processing.copyAttributes) works. Tried to use it to copy ignition event from tk103 device, but to no avail.
it sends complete and then without the information.
here with ignition.

{"distance":0.0,"ignition":true,"motion":false,"totalDistance":0.0,"motion":false}

then

{"distance":0.0,"totalDistance":0.0,"motion":false}

or tell me where is the line of code that sends the information to the database when the information arrives from the tk103b device. to change the setting.

if you can help, I thank you.