From ef30c922ab89a2b3b24011e66ee9ac6671e3507c Mon Sep 17 00:00:00 2001 From: jfunston83 Date: Fri, 25 Oct 2019 18:16:29 -0600 Subject: Update DmtProtocolDecoder.java --- .../java/org/traccar/protocol/DmtProtocolDecoder.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/main') 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) { -- cgit v1.2.3