aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjfunston83 <jfunston@gmail.com>2019-10-25 18:16:29 -0600
committerGitHub <noreply@github.com>2019-10-25 18:16:29 -0600
commitef30c922ab89a2b3b24011e66ee9ac6671e3507c (patch)
tree23ed0bdd76db6ffb138b8a53d3acc86458211c8d /src
parent9f6ab9f7934cec76247e1a3e0b0ae4a0f099a5d9 (diff)
downloadtrackermap-server-ef30c922ab89a2b3b24011e66ee9ac6671e3507c.tar.gz
trackermap-server-ef30c922ab89a2b3b24011e66ee9ac6671e3507c.tar.bz2
trackermap-server-ef30c922ab89a2b3b24011e66ee9ac6671e3507c.zip
Update DmtProtocolDecoder.java
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/DmtProtocolDecoder.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java b/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java
index c04e90f1d..43af422db 100644
--- a/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java
@@ -187,6 +187,21 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_INPUT, input);
position.set(Position.KEY_OUTPUT, output);
position.set(Position.KEY_STATUS, status);
+
+ } else if (fieldId == 27) {
+ int odometer = buf.readIntLE();
+ int runhours = buf.readIntLE();
+
+ position.set("DeviceOdo", odometer);
+ position.set("DeviceRunHours", runhours);
+
+
+ } else if (fieldId == 26) {
+ int tripodometer = buf.readIntLE();
+ int triprunhours = buf.readIntLE();
+
+ position.set("TripOdo", tripodometer);
+ position.set("TripRunTime", triprunhours);
} else if (fieldId == 6) {