From 0549b3ffd07d10d48f35434034a01d1504585df5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 6 Apr 2015 11:45:58 +1200 Subject: Support TT8850 device (fix #880) --- src/org/traccar/protocol/Gl200ProtocolDecoder.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java index 0ce8bff5e..38ecdf4f3 100644 --- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java @@ -37,8 +37,10 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder { } private static final Pattern pattern = Pattern.compile( - "\\+(?:RESP|BUFF):GT...," + - "[0-9a-fA-F]{6}," + // Protocol version + "(?:(?:\\+(?:RESP|BUFF):)|" + + "(?:\\x00\\x04,\\p{XDigit}{4},[01],))" + + "GT...," + + "(?:[0-9a-fA-F]{6})?," + // Protocol version "(\\d{15}),.*," + // IMEI "(\\d*)," + // GPS accuracy "(\\d+.\\d)?," + // Speed -- cgit v1.2.3