aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/VtfmsProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/VtfmsProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/VtfmsProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/VtfmsProtocolDecoder.java b/src/org/traccar/protocol/VtfmsProtocolDecoder.java
index 9f8cea04f..f4ff941d0 100644
--- a/src/org/traccar/protocol/VtfmsProtocolDecoder.java
+++ b/src/org/traccar/protocol/VtfmsProtocolDecoder.java
@@ -35,12 +35,12 @@ public class VtfmsProtocolDecoder extends BaseProtocolDecoder {
private static final Pattern PATTERN = new PatternBuilder()
.text("(")
.number("(d{15}),") // imei
- .number("[0-9A-Z]{3}dd,") // packet count
+ .number("[0-9A-Z]{3}dd,") // packet count
.number("(dd),") // packet id
.number("[^,]*,") // reserved
- .number("(d+),") // rssi
- .number("d+,") // fix status
- .number("(d+),") // satellites
+ .number("(d+)?,") // rssi
+ .number("(?:d+)?,") // fix status
+ .number("(d+)?,") // satellites
.number("[^,]*,") // reserved
.expression("([AV]),") // validity
.number("(dd)(dd)(dd),") // time (hhmmss)