diff options
author | Ivan Muratov <binakot@gmail.com> | 2017-10-24 14:46:09 +0300 |
---|---|---|
committer | Ivan Muratov <binakot@gmail.com> | 2017-10-24 14:46:09 +0300 |
commit | 09d3cf2b5416327700ad22b652cf4a0dca09aaf2 (patch) | |
tree | 7f7cfedc2ba6366b94d7ab0f926dbfab2dd4dae2 /src/org/traccar/protocol/Arnavi4ProtocolDecoder.java | |
parent | 05bcc7359b52cad0036bcb32888b7e999a3efb25 (diff) | |
parent | d225018f7aadefab6381d5283347bae10e153bfa (diff) | |
download | trackermap-server-09d3cf2b5416327700ad22b652cf4a0dca09aaf2.tar.gz trackermap-server-09d3cf2b5416327700ad22b652cf4a0dca09aaf2.tar.bz2 trackermap-server-09d3cf2b5416327700ad22b652cf4a0dca09aaf2.zip |
Merge branch 'arnavi4_final'
Diffstat (limited to 'src/org/traccar/protocol/Arnavi4ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Arnavi4ProtocolDecoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java b/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java index e3e027993..06abb563f 100644 --- a/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java +++ b/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java @@ -30,12 +30,12 @@ import java.util.Date; import java.util.LinkedList; import java.util.List; -import static org.traccar.protocol.Arnavi4FrameDecoder.HEADER_START_SIGN; -import static org.traccar.protocol.Arnavi4FrameDecoder.HEADER_VERSION_1; -import static org.traccar.protocol.Arnavi4FrameDecoder.HEADER_VERSION_2; - public class Arnavi4ProtocolDecoder extends BaseProtocolDecoder { + private static final byte HEADER_START_SIGN = (byte) 0xff; + private static final byte HEADER_VERSION_1 = 0x22; + private static final byte HEADER_VERSION_2 = 0x23; + private static final byte RECORD_PING = 0x00; private static final byte RECORD_DATA = 0x01; private static final byte RECORD_TEXT = 0x03; |