aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
diff options
context:
space:
mode:
authorEyk Haneklaus <eyk.haneklaus@gmail.com>2022-02-19 18:01:39 +0100
committerEyk Haneklaus <eyk.haneklaus@gmail.com>2022-02-19 18:01:39 +0100
commit9336e9f77ac101a4b0b061e61dbd43bc9567ef9c (patch)
tree6eab42069aacb757816bd5d15b7cbf4cd053ec5e /src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
parentb5b9eb8207f42235f7ed2a52a6424f5629590992 (diff)
downloadtrackermap-server-9336e9f77ac101a4b0b061e61dbd43bc9567ef9c.tar.gz
trackermap-server-9336e9f77ac101a4b0b061e61dbd43bc9567ef9c.tar.bz2
trackermap-server-9336e9f77ac101a4b0b061e61dbd43bc9567ef9c.zip
Added support for YP14 from "1903" protocol specification
Diffstat (limited to 'src/main/java/org/traccar/protocol/TrvProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/TrvProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java b/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
index 05312b820..c72ae9859 100644
--- a/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
@@ -59,7 +59,7 @@ public class TrvProtocolDecoder extends BaseProtocolDecoder {
.number("(d)") // acc
.number("(dd)") // arm status
.number("(dd)") // working mode
- .number("(?:[0-2]{3})?,")
+ .number("(?:d{3,5})?,") // (ignored)
.number("(d+),") // mcc
.number("(d+),") // mnc
.number("(d+),") // lac
@@ -183,7 +183,7 @@ public class TrvProtocolDecoder extends BaseProtocolDecoder {
return position;
- } else if (type.equals("AP01") || type.equals("AP10") || type.equals("YP03")) {
+ } else if (type.equals("AP01") || type.equals("AP10") || type.equals("YP03") || type.equals("YP14")) {
Parser parser = new Parser(PATTERN, sentence);
if (!parser.matches()) {