Position filtering and filter.skipAttributes

Niko Lync6 years ago

I am asking for help in understanding the operation of "filter.skipAttributes". Despite the exclusion of result commands, entries containing command results and alarms are still filtered out ... or did I forget something?

my config:

<entry key="filter.enable">true</entry>
<entry key="filter.future">86400</entry>
<entry key="filter.distance">10</entry>
<entry key="filter.skipAttributes">alarm,result</entry>

log example:

2018-09-23 00:54:14  INFO: [d8c96257] id: 356307040539297, command type: custom sent
2018-09-23 00:54:14 DEBUG: [d8c96257: 5027 > 37.47.199.251] HEX: 000000000000000f0c010500000007676574696f0d0a0100003349
2018-09-23 00:54:16 DEBUG: [d8c96257: 5027 < 37.47.199.251] HEX: 000000000000003b0c0106000000334449313a30204449323a30204449333a302044494e343a302041494e313a32382041494e323a3020444f313a3020444f323a30010000f745
2018-09-23 00:54:16 DEBUG: [d8c96257: 5027 > 37.47.199.251] HEX: 00000001
2018-09-23 00:54:16  INFO: Position filtered by Distance filters from device: 356307040888888
Anton Tananaev6 years ago

If you disable filtering do you see "result" attribute in the position?

Niko Lync6 years ago

Yes, without filtering, I see the results of commands as well as information about the ignition, etc.

Anton Tananaev6 years ago

Screenshot please.

Niko Lync6 years ago
Anton Tananaev6 years ago

You need to set filter.skipAttributes.enable to true.

Niko Lync6 years ago

Yesterday I tried to add this entry and it did not help but I checked by switching on the ignition. Today I've set filter.skipAttributes.enable to true again. In fact, responses to commands are no longer filtered. Unfortunately, it does not work to turn on the ignition.

Is the switching on of the ignition for the Teltonika protocol not interpreted as an alarm in this case ?

In my case, with the records containing information about switching on the ignition or other events from the tracker, the Event attribute always has a value other than zero. Is it possible to somehow set that if the event attribute has any value then the record will not be filtered ?

Anton Tananaev6 years ago

That's exactly what skip attributes is for.

Niko Lync6 years ago

Exactly, but what should I enter in filter.skipAttributes if, for example, I want the information about switching on the ignition not to be filtered.

The setting like <entry key="filter.skipAttributes">alarm</entry> does not work for the teltonika protocol. Ignition information is sent in each AVL package and the ignition switch status is sent as event 239

Settings <entry key="filter.skipAttributes">event</entry> causes that nothing is filtered, because the event is probably also sent in every avl package, but it just equals 0. and (if I understand correctly) this setting only works if any new io appears in the package

Anton Tananaev6 years ago

You can only use attribute presence as a condition, not a value.

Niko Lync6 years ago

Ok, thank you for help. Therefore, the only solution will be to add an additional attribute event on the tracker side, which will be sent only at the moment of the event.