aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-07-26 21:07:12 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-07-26 21:07:12 +1200
commitc81e2a21ce8d204f196accf5d8f0ffc59b072013 (patch)
treea5a2309e0fd894d4dfe51b48ec85bee9b7411b68 /src/org/traccar/protocol
parent6cec98cfcbad9b62877c93fa085bfaab5378f8a8 (diff)
downloadtrackermap-server-c81e2a21ce8d204f196accf5d8f0ffc59b072013.tar.gz
trackermap-server-c81e2a21ce8d204f196accf5d8f0ffc59b072013.tar.bz2
trackermap-server-c81e2a21ce8d204f196accf5d8f0ffc59b072013.zip
Fix xexun2 decoder
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Xexun2ProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Xexun2ProtocolDecoder.java b/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
index 098647499..d85d89cfc 100644
--- a/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
@@ -33,10 +33,11 @@ public class Xexun2ProtocolDecoder extends BaseProtocolDecoder {
super(serverManager);
}
+ //130725134142,,GPRMC,134142.591,A,3845.6283,N,00909.8876,W,2.08,287.33,250713,,,A*71,F,, imei:013227000526784,03,-50.7,L:3.69V,0,128,65337,268,03,177A,119F
static private Pattern pattern = Pattern.compile(
"[\r\n]*" +
"(\\d+)," + // Serial
- "(\\+?\\d+)," + // Number
+ "(\\+?\\d+)?," + // Number
"GPRMC," +
"(\\d{2})(\\d{2})(\\d{2})\\.(\\d+)," + // Time (HHMMSS.SSS)
"([AV])," + // Validity