aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-05-20 21:33:26 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-05-20 21:33:26 -0700
commitf697d6fad3648a8da2ad3bca9ff14263859a8e71 (patch)
tree58dfc743942dc66372efcc454c5c1717e33cc113 /src/main/java
parent4e624c4a3446cff59d3247565d4455f531636389 (diff)
downloadtrackermap-server-f697d6fad3648a8da2ad3bca9ff14263859a8e71.tar.gz
trackermap-server-f697d6fad3648a8da2ad3bca9ff14263859a8e71.tar.bz2
trackermap-server-f697d6fad3648a8da2ad3bca9ff14263859a8e71.zip
Add Teltonika panic support
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 74b4be8d5..6ba183f9b 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -312,6 +312,11 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
break;
}
break;
+ case 389:
+ if (BitUtil.between(readValue(buf, length, false), 4, 8) == 1) {
+ position.set(Position.KEY_ALARM, Position.ALARM_SOS);
+ }
+ break;
default:
position.set(Position.PREFIX_IO + id, readValue(buf, length, false));
break;