aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-10-27 07:21:22 -0700
committerAnton Tananaev <anton@traccar.org>2023-10-27 07:21:22 -0700
commit0239cd47ed696a67d65661a1d936c925303f9b58 (patch)
treeadf43619990be35aa70ff06b70728b15734c42ff /src/main/java/org/traccar/protocol
parent3bb48d3b472a9434d1d228767fef1d692b070b8e (diff)
downloadtrackermap-server-0239cd47ed696a67d65661a1d936c925303f9b58.tar.gz
trackermap-server-0239cd47ed696a67d65661a1d936c925303f9b58.tar.bz2
trackermap-server-0239cd47ed696a67d65661a1d936c925303f9b58.zip
Include P45 event source
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
index dc763dea7..1b6d471b4 100644
--- a/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java
@@ -386,7 +386,7 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
.expression("([AV]),") // validity
.number("(d+),") // speed
.number("(d+),") // course
- .number("d+,") // event source
+ .number("(d+),") // event source
.number("d+,") // unlock verification
.number("(d+),") // rfid
.number("d+,") // password verification
@@ -419,6 +419,8 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
position.setSpeed(UnitsConverter.knotsFromMph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
+ position.set("eventSource", parser.nextInt());
+
String rfid = parser.next();
if (!rfid.equals("0000000000")) {
position.set(Position.KEY_DRIVER_UNIQUE_ID, rfid);