diff options
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/MiniFinderProtocolDecoder.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java index 9ea8de0bf..2b7a960c4 100644 --- a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java +++ b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java @@ -143,7 +143,7 @@ public class MiniFinderProtocolDecoder extends BaseProtocolDecoder { } DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); - if (deviceSession == null || !sentence.matches("![A-D],.*")) { + if (deviceSession == null || !sentence.matches("![3A-D],.*")) { return null; } @@ -153,7 +153,15 @@ public class MiniFinderProtocolDecoder extends BaseProtocolDecoder { String type = sentence.substring(1, 2); position.set(Position.KEY_TYPE, type); - if (type.equals("B") || type.equals("D")) { + if (type.equals("3")) { + + getLastLocation(position, null); + + position.set(Position.KEY_RESULT, sentence.substring(3)); + + return position; + + } else if (type.equals("B") || type.equals("D")) { Parser parser = new Parser(PATTERN_BD, sentence); if (!parser.matches()) { |