aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Ev603ProtocolDecoder.java
diff options
context:
space:
mode:
authorLuis Parada <hackerunet@gmail.com>2012-10-26 14:59:18 -0430
committerLuis Parada <hackerunet@gmail.com>2012-10-26 14:59:18 -0430
commita4edfb6dec7de8a80ca7c3081e81aac40ed73542 (patch)
tree0f16fc1f33d45be8b363597d7952323430ec3014 /src/org/traccar/protocol/Ev603ProtocolDecoder.java
parent534b62acef775a4590239cb96a227d138b262025 (diff)
downloadtrackermap-server-a4edfb6dec7de8a80ca7c3081e81aac40ed73542.tar.gz
trackermap-server-a4edfb6dec7de8a80ca7c3081e81aac40ed73542.tar.bz2
trackermap-server-a4edfb6dec7de8a80ca7c3081e81aac40ed73542.zip
FIXED wrong Regular Expression Protocol EV603
Diffstat (limited to 'src/org/traccar/protocol/Ev603ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Ev603ProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Ev603ProtocolDecoder.java b/src/org/traccar/protocol/Ev603ProtocolDecoder.java
index cbef74e98..6bc13d6d7 100644
--- a/src/org/traccar/protocol/Ev603ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Ev603ProtocolDecoder.java
@@ -46,10 +46,10 @@ public class Ev603ProtocolDecoder extends GenericProtocolDecoder{
"!A," + // Start Character
"([\\d]{2})\\/([\\d]{2})\\/([\\d]{2})," + // Date dd/mm/YY
"([\\d]{2}):([\\d]{2}):([\\d]{2})," + // Time hh:mm:ss
- "(-?[\\d]{2})([\\d]{2}.[\\d]{4})," + // Latitude (DDMM.MMMM)
- "(-?[\\d]{3})([\\d]{2}.[\\d]{4})," + // Longitude (DDDMM.MMMM)
+ "(-?[\\d]+\\.[\\d]+)," + // Latitude (DDMM.MMMM)
+ "(-?[\\d]+\\.[\\d]+)," + // Longitude (DDDMM.MMMM)
"([\\d]+.[\\d]{2})," + // Speed
- "([\\d]{2-3}+.[\\d]{1-3})," + // degrees
+ "([\\d]+|[\\d]+\\.[\\d]+)," + // degrees
".*");
static private Pattern deviceImei = Pattern.compile("([\\d]+);");