From 5ef71180ddbc6a316cd4aa268512d97a77877249 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 5 Nov 2015 17:03:56 +1300 Subject: Start OBD decoder implementation --- src/org/traccar/helper/ObdDecoder.java | 27 +++++++++++++++++++++++++++ test/org/traccar/helper/ObdDecoderTest.java | 12 ++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 src/org/traccar/helper/ObdDecoder.java create mode 100644 test/org/traccar/helper/ObdDecoderTest.java diff --git a/src/org/traccar/helper/ObdDecoder.java b/src/org/traccar/helper/ObdDecoder.java new file mode 100644 index 000000000..63fd30b09 --- /dev/null +++ b/src/org/traccar/helper/ObdDecoder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.traccar.helper; + +public class ObdDecoder { + + private static final int MODE_CURRENT = 0x01; + private static final int MODE_FREEZE_FRAME = 0x02; + private static final int MODE_DTC = 0x03; // diagnostic trouble codes + + + + +} diff --git a/test/org/traccar/helper/ObdDecoderTest.java b/test/org/traccar/helper/ObdDecoderTest.java new file mode 100644 index 000000000..fb74f5d3c --- /dev/null +++ b/test/org/traccar/helper/ObdDecoderTest.java @@ -0,0 +1,12 @@ +package org.traccar.helper; + +import org.junit.Assert; +import org.junit.Test; + +public class ObdDecoderTest { + + @Test + public void testDecode() { + } + +} -- cgit v1.2.3