From 4d9157995627d6a6ba226e01e8580edcfb1e682b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 16 Oct 2015 22:38:03 +1300 Subject: Fix GoSafe protocol decoder --- src/org/traccar/protocol/GoSafeProtocolDecoder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java index d32322d48..cba045122 100644 --- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java +++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java @@ -64,11 +64,14 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder { .xpr(",?") .groupEnd(false) .groupBegin() + .txt("GSM:").not(",").xpr(",?") + .groupEnd(true) + .groupBegin() .txt("COT:") .num("(d+)") // odometer .opn(";d+:d+:d+") // engine hours .xpr(",?") - .groupEnd(false) + .groupEnd(true) .groupBegin() .txt("ADC:") .num("(d+.d+);") // power -- cgit v1.2.3