aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-10-05 16:10:18 +0800
committerAnton Tananaev <anton@traccar.org>2023-10-05 16:10:18 +0800
commitfa2a61f6487c9ad8a338cdacf18f15be9c299cfd (patch)
treee7c30c35a2c5a1d6200d0a6506f2046d3843a3fe /src/main
parentb569b3467d214d1cab8f38dfdf43679e5fd8c592 (diff)
downloadtrackermap-server-fa2a61f6487c9ad8a338cdacf18f15be9c299cfd.tar.gz
trackermap-server-fa2a61f6487c9ad8a338cdacf18f15be9c299cfd.tar.bz2
trackermap-server-fa2a61f6487c9ad8a338cdacf18f15be9c299cfd.zip
Fix Seeworld cell decoding
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
index e9bdaf194..f676e7363 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -358,7 +358,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
long cid;
if (type == MSG_LBS_ALARM || type == MSG_GPS_LBS_7) {
cid = buf.readLong();
- } else if (type == MSG_GPS_LBS_6) {
+ } else if (type == MSG_GPS_LBS_6 || variant == Variant.SEEWORLD) {
cid = buf.readUnsignedInt();
} else {
cid = buf.readUnsignedMedium();
@@ -1485,6 +1485,8 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
variant = Variant.SL4X;
} else if (header == 0x7878 && type == MSG_GPS_LBS_2 && length == 0x2f) {
variant = Variant.SEEWORLD;
+ } else if (header == 0x7878 && type == MSG_GPS_LBS_STATUS_1 && length == 0x26) {
+ variant = Variant.SEEWORLD;
} else {
variant = Variant.STANDARD;
}