aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-09-25 00:26:31 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-09-25 00:26:31 -0700
commit8f2c293e0fc7a0ddcfcc4aa86cbbfc01d5b098be (patch)
tree1a3034b55771bec425fe45650a72d573ebcdf60a /src/main/java/org/traccar/protocol
parent3f4053552bde461ba2ef6686a83c08e2b1122472 (diff)
downloadtrackermap-server-8f2c293e0fc7a0ddcfcc4aa86cbbfc01d5b098be.tar.gz
trackermap-server-8f2c293e0fc7a0ddcfcc4aa86cbbfc01d5b098be.tar.bz2
trackermap-server-8f2c293e0fc7a0ddcfcc4aa86cbbfc01d5b098be.zip
Support M101 protocol
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
index da055dff3..82abeb42e 100644
--- a/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
@@ -92,7 +92,7 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
buf.readByte(); // header
- boolean longFormat = buf.getUnsignedByte(buf.readerIndex()) == 0x75;
+ boolean longFormat = buf.getUnsignedByte(buf.readerIndex()) >> 4 == 0x7;
String id = String.valueOf(Long.parseLong(ByteBufUtil.hexDump(buf.readSlice(5))));
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, id);