aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-23 16:29:25 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-23 16:29:25 -0700
commitbf504bdda752dfbde1a81ece03805d14a4bd117c (patch)
treefa97c6c3f6437981d0b99d72ec3d7d8b62a308a4 /src/main/java/org
parentd24edbc439a96b38442be1fbbfaccf65f0dd1923 (diff)
downloadtrackermap-server-bf504bdda752dfbde1a81ece03805d14a4bd117c.tar.gz
trackermap-server-bf504bdda752dfbde1a81ece03805d14a4bd117c.tar.bz2
trackermap-server-bf504bdda752dfbde1a81ece03805d14a4bd117c.zip
Decode ST300UEX serial data
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
index 44ba1da38..67a82a688 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -375,7 +375,7 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
}
} else if (attribute.startsWith("GTSL")) {
position.set(Position.KEY_DRIVER_UNIQUE_ID, attribute.split("\\|")[4]);
- } else {
+ } else if (attribute.contains("=")) {
String[] pair = attribute.split("=");
if (pair.length >= 2) {
String value = pair[1].trim();
@@ -398,6 +398,8 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
break;
}
}
+ } else {
+ position.set("serial", attribute);
}
remaining -= attribute.length() + 1;
}