ignitionOn/Off event for gt06 protocol

arman2 years ago

hi
i have a tracker with gt06 protocol and i created web notification for ignitionOn/Off types on all devices. the problem is i don't receive any event of that type on web-socket connection. checked to see if any event is actually detected and persisted on database in that period and there was none but ignition attribute on position table is changed two times in that period. i attached query result of positions and events table in the same range.
i appreciate if you could check if its a bug or something else.

the commit hash i use on production is this: commit

positions: link
events: link

Anton Tananaev2 years ago

Both links are to the positions table.

Anton Tananaev2 years ago

The problem is most likely that your device doesn't report ignition in every position.

arman2 years ago

sorry. this is correct link: events

arman2 years ago

but all position records have ignition attribute.

Anton Tananaev2 years ago

Are you sure you carefully checked before making this statement? For example, I don't see it on line 95.

arman2 years ago

yes i see that. the alarm record is the problem. i also checked ignitionEventHandler and it always compare with previous cached position.
is there anything i can do to fix this, maybe filter those alarms entirely or just force app not to cache them ?

Anton Tananaev2 years ago

You can enable attribute copying.

arman2 years ago

i set these configurations and it fixed my issue

<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>ignition</entry>

thank you