diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-07-12 10:34:23 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-07-12 10:34:23 -0700 |
commit | f4855e513e121b59e923af0da8d129007349c639 (patch) | |
tree | 68558f554e0f18320e93de6bc80c59004e6953f3 /src/main/java/org/traccar/protocol | |
parent | 4f6e68ad5a14b128258e68fd819406dbea585d7f (diff) | |
download | traccar-server-f4855e513e121b59e923af0da8d129007349c639.tar.gz traccar-server-f4855e513e121b59e923af0da8d129007349c639.tar.bz2 traccar-server-f4855e513e121b59e923af0da8d129007349c639.zip |
Fix ICCID decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index 859d850d1..c0e9541a4 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -887,7 +887,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { } else if (subType == 0x0a) { buf.skipBytes(8); // imei buf.skipBytes(8); // imsi - position.set(Position.KEY_ICCID, ByteBufUtil.hexDump(buf.readSlice(8))); + position.set(Position.KEY_ICCID, ByteBufUtil.hexDump(buf.readSlice(10)).replaceAll("f", "")); return position; } else if (subType == 0x0d) { if (buf.getByte(buf.readerIndex()) != '!') { |