ignitionOn/Off event for gt06 protocol

arman9 months 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 Tananaev9 months ago

Both links are to the positions table.

Anton Tananaev9 months ago

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

arman9 months ago

sorry. this is correct link: events

arman9 months ago

but all position records have ignition attribute.

Anton Tananaev9 months ago

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

arman9 months 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 Tananaev9 months ago

You can enable attribute copying.

arman9 months 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