aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-03-01 07:29:12 -0800
committerAnton Tananaev <anton@traccar.org>2024-03-01 07:29:12 -0800
commit16909b99647f969f4b9c2d3e34a7ada6fc220b94 (patch)
treed02f63abcb62b8411fe8c745a9c488fa18fa4211 /src/main
parent6566236b1e769ef3413a1b03bfa6665a54d63371 (diff)
downloadtrackermap-server-16909b99647f969f4b9c2d3e34a7ada6fc220b94.tar.gz
trackermap-server-16909b99647f969f4b9c2d3e34a7ada6fc220b94.tar.bz2
trackermap-server-16909b99647f969f4b9c2d3e34a7ada6fc220b94.zip
Fix Mictrack 710 decoding
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java
index 4b11cbc74..6be3d2dc3 100644
--- a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java
@@ -57,11 +57,14 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder {
.text("#")
.number("(?:(dd|dddd)|x*)") // cell or voltage
.groupBegin()
- .number("#(d+),") // mcc
+ .text("#")
+ .groupBegin()
+ .number("(d+),") // mcc
.number("(d+),") // mnc
.number("(x+),") // lac
.number("(x+)") // cell id
.groupEnd("?")
+ .groupEnd("?")
.text("$GPRMC,")
.number("(?:(dd)(dd)(dd).d+)?,") // time (hhmmss.sss)
.expression("([AVL]),") // validity