aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-11-13 06:37:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-11-13 06:37:14 +1300
commit395ed2c3845d20b0dbb25e39806dfdd37c2ec0d3 (patch)
treed2c6cf1b39d197e90137decaebb809c013bf38a1
parente2f36439c120c3dd951e66a43739359751adc9fc (diff)
downloadtraccar-server-395ed2c3845d20b0dbb25e39806dfdd37c2ec0d3.tar.gz
traccar-server-395ed2c3845d20b0dbb25e39806dfdd37c2ec0d3.tar.bz2
traccar-server-395ed2c3845d20b0dbb25e39806dfdd37c2ec0d3.zip
Decode VT900 driver license
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
index b0793037f..bc7a0b71a 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
@@ -69,6 +69,8 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder {
.number("|(x{8})") // odometer
.groupBegin()
.number("|(xx)") // satellites
+ .text("|")
+ .expression("(.*)") // driver
.groupEnd("?")
.or()
.number("|(x{9})") // odometer
@@ -259,6 +261,7 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_RSSI, parser.nextHexInt());
position.set(Position.KEY_ODOMETER, parser.nextHexLong());
position.set(Position.KEY_SATELLITES, parser.nextHexInt());
+ position.set("driverLicense", parser.next());
position.set(Position.KEY_ODOMETER, parser.nextHexLong());
position.set(Position.KEY_DRIVER_UNIQUE_ID, parser.next());