aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-25 23:03:11 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-25 23:03:11 +1300
commitb5fc7e0899475547da99c06319ede5cc68f647e4 (patch)
tree66faf98bd1d259fe6701c5b8486e6d544cf6cb02 /src/org
parent62e2696c2d8e619d90cb978fa60f714312649866 (diff)
downloadtrackermap-server-b5fc7e0899475547da99c06319ede5cc68f647e4.tar.gz
trackermap-server-b5fc7e0899475547da99c06319ede5cc68f647e4.tar.bz2
trackermap-server-b5fc7e0899475547da99c06319ede5cc68f647e4.zip
Improve H02 protocol decoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java
index e4b18e277..dd5d4abd7 100644
--- a/src/org/traccar/protocol/H02ProtocolDecoder.java
+++ b/src/org/traccar/protocol/H02ProtocolDecoder.java
@@ -154,12 +154,10 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder {
.text("VP1,")
.or()
.groupBegin()
- .text("V1,")
- .or()
.text("V4,")
.expression("(.*),") // response
.or()
- .text("V19,")
+ .expression("V[^,]*,")
.groupEnd()
.number("(?:(dd)(dd)(dd))?,") // time (hhmmss)
.groupEnd()