From 430aeaa159e01d21966a20c77cdaf9aed0fa0730 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 18 Apr 2018 05:09:08 +1200 Subject: Decode Totem SOS button --- src/org/traccar/protocol/TotemProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java index 5a2c203d2..841c3c3dc 100644 --- a/src/org/traccar/protocol/TotemProtocolDecoder.java +++ b/src/org/traccar/protocol/TotemProtocolDecoder.java @@ -245,6 +245,9 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder { int io = parser.nextBinInt(); if (pattern == PATTERN1) { + if (BitUtil.check(io, 0)) { + position.set(Position.KEY_ALARM, Position.ALARM_SOS); + } for (int i = 1; i <= 4; i++) { position.set(Position.PREFIX_IN + i, BitUtil.check(io, 3 + i)); } -- cgit v1.2.3