diff options
author | Anton Tananaev <anton@traccar.org> | 2023-02-21 09:56:03 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-02-21 09:56:03 -0800 |
commit | 392f00082faff72c9948ed569e4c883a5fabe7d6 (patch) | |
tree | 08b08d8654ba7321e5e7253b464002d4ec639b77 /src/main/java/org/traccar | |
parent | 754ff3a85baf2faaa1b962f16f52ebd0e12e6436 (diff) | |
download | trackermap-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.java | 6 |
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; |