diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-13 23:11:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-13 23:11:45 +1200 |
commit | d454901a5ff831eaee30db23df12556b6442693a (patch) | |
tree | 29fb0d9e3ad41df9f17a81f3753de056e7740a6b /src/org/traccar/protocol/H02ProtocolDecoder.java | |
parent | a51050b4e12cb5b72c9ab42acc4eccbf5b6531a9 (diff) | |
download | trackermap-server-d454901a5ff831eaee30db23df12556b6442693a.tar.gz trackermap-server-d454901a5ff831eaee30db23df12556b6442693a.tar.bz2 trackermap-server-d454901a5ff831eaee30db23df12556b6442693a.zip |
Improve H02 decoder text pattern
Diffstat (limited to 'src/org/traccar/protocol/H02ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/H02ProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java index fc6c9f17c..a0c646900 100644 --- a/src/org/traccar/protocol/H02ProtocolDecoder.java +++ b/src/org/traccar/protocol/H02ProtocolDecoder.java @@ -129,7 +129,7 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder { .text("*") .expression("..,") // manufacturer .number("(d+),") // imei - .number("Vd,") // version? + .expression("[^,]+,") .any() .number("(?:(dd)(dd)(dd))?,") // time .expression("([AV])?,") // validity @@ -148,6 +148,7 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder { .number("(d+.?d*),") // speed .number("(d+.?d*)?,") // course .number("(?:(dd)(dd)(dd))?,") // date (ddmmyy) + .any() .number("(x{8})") // status .any() .compile(); |