aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/TotemProtocolDecoder.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java
index b4fa177be..73bb18aac 100644
--- a/src/org/traccar/protocol/TotemProtocolDecoder.java
+++ b/src/org/traccar/protocol/TotemProtocolDecoder.java
@@ -45,13 +45,13 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
"([NS])," +
"(\\d+)(\\d{2}\\.\\d+)," + // Longitude (DDDMM.MMMM)
"([EW])," +
- "(\\d+\\.\\d+)?," + // Speed
- "(\\d+\\.\\d+)?," + // Course
+ "(\\d+\\.?\\d*)?," + // Speed
+ "(\\d+\\.?\\d*)?," + // Course
"(\\d{2})(\\d{2})(\\d{2})" + // Date (DDMMYY)
"[^\\*]+\\*\\p{XDigit}{2}\\|" + // Checksum
- "\\d+.\\d\\|" + // PDOP
- "(\\d+.\\d)\\|" + // HDOP
- "\\d+.\\d\\|" + // VDOP
+ "\\d+\\.\\d+\\|" + // PDOP
+ "(\\d+\\.\\d+)\\|" + // HDOP
+ "\\d+\\.\\d+\\|" + // VDOP
"(\\d+)\\|" + // IO Status
"\\d+\\|" + // Time
"\\d" + // Charged
@@ -78,7 +78,7 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
"([EW])\\|" +
"(\\d+\\.\\d+)?\\|" + // Speed
"(\\d+)?\\|" + // Course
- "(\\d+.\\d+)\\|" + // HDOP
+ "(\\d+\\.\\d+)\\|" + // HDOP
"(\\d+)\\|" + // IO Status
"\\d" + // Charged
"(\\d{2})" + // Battery