diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-06-30 23:38:36 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-06-30 23:38:36 -0700 |
commit | 9a070e77b5c459781a9cdf1e143b2034a19e86b7 (patch) | |
tree | 791d8f3870e7e340fcdf12042fb85e98affe45b3 /src/main/java | |
parent | 94d95ebeb1168ff235aa49a24c0ba0ed62b1125b (diff) | |
download | traccar-server-9a070e77b5c459781a9cdf1e143b2034a19e86b7.tar.gz traccar-server-9a070e77b5c459781a9cdf1e143b2034a19e86b7.tar.bz2 traccar-server-9a070e77b5c459781a9cdf1e143b2034a19e86b7.zip |
Fix Space10X decoding exception
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index 3f3a96109..281234ebb 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -685,7 +685,11 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); - if (type == MSG_LBS_MULTIPLE_1 || type == MSG_LBS_MULTIPLE_2 || type == MSG_LBS_EXTEND + if (type == MSG_LBS_STATUS && dataLength >= 18) { + + return null; // space10x multi-lbs message + + } else if (type == MSG_LBS_MULTIPLE_1 || type == MSG_LBS_MULTIPLE_2 || type == MSG_LBS_EXTEND || type == MSG_LBS_WIFI || type == MSG_LBS_2 || type == MSG_WIFI_3) { boolean longFormat = type == MSG_LBS_2 || type == MSG_WIFI_3; |