Mount Alarm Support for TK20C (Traccar Tk103ProtocolDecoder)

Jim 4 months ago

Hi everyone,

I’m testing a TK20C device with Traccar. The device itself has a physical mount/dismount feature — basically, it has a button/sensor that triggers when the device is physically mounted or removed.

When I reviewed the Traccar source code (specifically the Tk103ProtocolDecoder), I only found logic for the dismount (removing) alarm. I couldn’t find any handling for a mount alarm in the decoder or in the alarm mappings.

To clarify, I’m not referring to online/offline status (since the device can still be online even if it’s dismounted). I’m asking specifically about the mount alarm that the device can trigger through its built-in button/sensor.

So my questions are:

Does Traccar currently support the mount alarm for TK20C or similar TK103-based devices?

If not, is this something that should be added to the Tk103ProtocolDecoder, assuming the device sends a separate event for it?

Any guidance or confirmation would be very helpful.

Thanks!

Anton Tananaev 4 months ago

Probably needs to be added to decoder, but we don't have such alarm in general.

Jim 4 months ago

Thank you for the clarification and the fast response.