From c47057df70a9322dad794d160582d8b84115b5c9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 9 Aug 2015 19:09:07 +1200 Subject: Fix TK103 status parsing --- src/org/traccar/protocol/Tk103ProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java index 5cbde4b7e..f4a62a99e 100644 --- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java @@ -33,6 +33,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { super(protocol); } + //088048003342 BR00 150807 A 1352.9871 N 10030.9084 E 000.0 110718 000.0 001010000 L00000000 private static final Pattern pattern = Pattern.compile( "(\\d+)(,)?" + // Device ID ".{4},?" + // Command @@ -45,7 +46,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { "([EW]),?" + "(\\d+\\.\\d)(?:\\d*,)?" + // Speed "(\\d{2})(\\d{2})(\\d{2}),?" + // Time (HHMMSS) - "(\\d+\\.?\\d+),?" + // Course + "(\\d+\\.?\\d),?" + // Course "([0-9a-fA-F]{8})?,?" + // State "(?:L([0-9a-fA-F]+))?.*\\)?"); // Odometer -- cgit v1.2.3