aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-02-21 09:56:03 -0800
committerAnton Tananaev <anton@traccar.org>2023-02-21 09:56:03 -0800
commit392f00082faff72c9948ed569e4c883a5fabe7d6 (patch)
tree08b08d8654ba7321e5e7253b464002d4ec639b77 /src/main/java/org/traccar
parent754ff3a85baf2faaa1b962f16f52ebd0e12e6436 (diff)
downloadtrackermap-server-392f00082faff72c9948ed569e4c883a5fabe7d6.tar.gz
trackermap-server-392f00082faff72c9948ed569e4c883a5fabe7d6.tar.bz2
trackermap-server-392f00082faff72c9948ed569e4c883a5fabe7d6.zip
Support Meitrack K211G lock
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index a7accf0f1..5c5ba4be4 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -420,6 +420,12 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
case 0x15:
position.set(Position.KEY_INPUT, buf.readUnsignedByte());
break;
+ case 0x47:
+ int lockState = buf.readUnsignedByte();
+ if (lockState > 0) {
+ position.set(Position.KEY_LOCK, lockState == 2);
+ }
+ break;
case 0x97:
position.set(Position.KEY_THROTTLE, buf.readUnsignedByte());
break;