aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-04-12 17:14:22 -0700
committerAnton Tananaev <anton@traccar.org>2023-04-12 17:14:22 -0700
commit9a427527da45e599a1082f1f2836d195ea26acb5 (patch)
treec0a0938358fa1a271ebb35faca5120d2a880552f /src/main
parent5460739293ccd8e89adc9edb4653b4de28b09897 (diff)
downloadtrackermap-server-9a427527da45e599a1082f1f2836d195ea26acb5.tar.gz
trackermap-server-9a427527da45e599a1082f1f2836d195ea26acb5.tar.bz2
trackermap-server-9a427527da45e599a1082f1f2836d195ea26acb5.zip
Add iStartek SOS and door
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/StartekProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/StartekProtocolDecoder.java b/src/main/java/org/traccar/protocol/StartekProtocolDecoder.java
index d75da7fbd..d08bb92a8 100644
--- a/src/main/java/org/traccar/protocol/StartekProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/StartekProtocolDecoder.java
@@ -98,6 +98,8 @@ public class StartekProtocolDecoder extends BaseProtocolDecoder {
private String decodeAlarm(int value) {
switch (value) {
+ case 1:
+ return Position.ALARM_SOS;
case 5:
case 6:
return Position.ALARM_DOOR;
@@ -186,6 +188,7 @@ public class StartekProtocolDecoder extends BaseProtocolDecoder {
int input = parser.nextHexInt();
int output = parser.nextHexInt();
position.set(Position.KEY_IGNITION, BitUtil.check(input, 1));
+ position.set(Position.KEY_DOOR, BitUtil.check(input, 2));
position.set(Position.KEY_INPUT, input);
position.set(Position.KEY_OUTPUT, output);