diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-16 22:38:03 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-16 22:38:03 +1300 |
commit | 4d9157995627d6a6ba226e01e8580edcfb1e682b (patch) | |
tree | 763f9cb14edb6eebdb5358faa7d54b5e236f8c14 /src | |
parent | 4b36a0f1b95c1a4f4f12442d7cf075626b8fdbef (diff) | |
download | traccar-server-4d9157995627d6a6ba226e01e8580edcfb1e682b.tar.gz traccar-server-4d9157995627d6a6ba226e01e8580edcfb1e682b.tar.bz2 traccar-server-4d9157995627d6a6ba226e01e8580edcfb1e682b.zip |
Fix GoSafe protocol decoder
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/GoSafeProtocolDecoder.java | 5 |
1 files changed, 4 insertions, 1 deletions
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 |