aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-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) {