aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-02-17 09:25:58 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-02-17 09:25:58 +1300
commitb7e24f5f74e658c2431f3a46b4c2cb1e912edfbe (patch)
tree484699e1a745b4e2a9e34be1ec29405e437e73f3 /src/org/traccar/protocol/Xexun2ProtocolDecoder.java
parent5ac7a4595d6b9f56cf2f43c2a623ee5ffeee2228 (diff)
downloadtrackermap-server-b7e24f5f74e658c2431f3a46b4c2cb1e912edfbe.tar.gz
trackermap-server-b7e24f5f74e658c2431f3a46b4c2cb1e912edfbe.tar.bz2
trackermap-server-b7e24f5f74e658c2431f3a46b4c2cb1e912edfbe.zip
Add Xexun Glonass support (fix #1082)
Diffstat (limited to 'src/org/traccar/protocol/Xexun2ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Xexun2ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Xexun2ProtocolDecoder.java b/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
index 3a9e1129e..ea2197b31 100644
--- a/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
@@ -40,7 +40,7 @@ public class Xexun2ProtocolDecoder extends BaseProtocolDecoder {
"[\r\n]*" +
"(\\d+)," + // Serial
"([^,]+)?," + // Number
- "GPRMC," +
+ "G[PN]RMC," +
"(\\d{2})(\\d{2})(\\d{2})\\.(\\d+)," + // Time (HHMMSS.SSS)
"([AV])," + // Validity
"(\\d{2})(\\d{2}\\.\\d+)," + // Latitude (DDMM.MMMM)