From a4879de310dc7a1fb8385631ec9d6aca71e57b3e Mon Sep 17 00:00:00 2001 From: Frédéric Christ Date: Wed, 12 Jun 2024 19:22:06 +0200 Subject: tlt2h protocol: Add `SHAKE` event This contribution introduces the `SHAKE` event. It has been verified with the Mictrack MT700. MT700 emits this event when configured in Mode 4, 7 or 0. It is the first event sent after wake-up due to a detected vibration. --- src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main') diff --git a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java index 6be3d2dc3..c8ea66b6c 100644 --- a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java @@ -112,6 +112,9 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder { case "TOWED": position.set(Position.KEY_ALARM, Position.ALARM_TOW); break; + case "SHAKE": + position.set(Position.KEY_ALARM, Position.ALARM_VIBRATION); + break; case "SOS": position.set(Position.KEY_ALARM, Position.ALARM_SOS); break; -- cgit v1.2.3